
| Current Path : /var/www/html/ift/web/core/modules/layout_discovery/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/modules/layout_discovery/layout_discovery.install |
<?php
/**
* @file
* Install, update, and uninstall functions for the Layout Discovery module.
*/
/**
* Implements hook_requirements().
*/
function layout_discovery_requirements($phase) {
$requirements = [];
if ($phase === 'install') {
if (\Drupal::moduleHandler()->moduleExists('layout_plugin')) {
$requirements['layout_discovery'] = [
'description' => t('Layout Discovery cannot be installed because the Layout Plugin module is installed and incompatible.'),
'severity' => REQUIREMENT_ERROR,
];
}
}
return $requirements;
}