You are here

function hook_layout_alter in Layout Plugin (obsolete, use core's Layout Discovery) 8

Allow modules to alter layout plugin definitions.

Parameters

array[] $definitions: The array of layout definitions, keyed by plugin ID.

1 invocation of hook_layout_alter()
LayoutPluginManager::__construct in src/Plugin/Layout/LayoutPluginManager.php
Constructs a LayoutPluginManager object.

File

./layout_plugin.api.php, line 19
Hooks provided by the Layout Plugin module.

Code

function hook_layout_alter(&$definitions) {

  // Remove a layout.
  unset($definitions['twocol']);
}