5 * Install, update, and uninstall functions for the Layout Discovery module.
9 * Implements hook_requirements().
11 function layout_discovery_requirements($phase) {
13 if ($phase === 'install') {
14 if (\Drupal::moduleHandler()->moduleExists('layout_plugin')) {
15 $requirements['layout_discovery'] = [
16 'description' => t('Layout Discovery cannot be installed because the Layout Plugin module is installed and incompatible.'),
17 'severity' => REQUIREMENT_ERROR,