Mercurial > hg > cmmr2012-drupal-site
view core/modules/layout_discovery/layout_discovery.install @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line source
<?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; }