Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / layout_discovery / layout_discovery.install
1 <?php
2
3 /**
4  * @file
5  * Install, update, and uninstall functions for the Layout Discovery module.
6  */
7
8 /**
9  * Implements hook_requirements().
10  */
11 function layout_discovery_requirements($phase) {
12   $requirements = [];
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,
18       ];
19     }
20   }
21   return $requirements;
22 }