Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

layout_discovery.install

Install, update, and uninstall functions for the Layout Discovery module.

File

core/modules/layout_discovery/layout_discovery.install

View 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;
}

Functions

Title Deprecated Summary
layout_discovery_requirements Implements hook_requirements().

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal