class LayoutPluginAlter in Block List Override 1.0.x
Implementation callbacks for layout builder plugin alter hooks.
Hierarchy
- class \Drupal\block_list_override\PluginAlter implements ContainerInjectionInterface
- class \Drupal\block_list_override\LayoutPluginAlter
Expanded class hierarchy of LayoutPluginAlter
1 file declares its use of LayoutPluginAlter
- LayoutController.php in src/
Controller/ LayoutController.php
File
- src/
LayoutPluginAlter.php, line 8
Namespace
Drupal\block_list_overrideView source
class LayoutPluginAlter extends PluginAlter {
/**
* {@inheritdoc}
*/
protected function setUp() {
$settings = $this->configFactory
->get('block_list_override.settings');
$options = [
'match' => !empty($settings) ? trim($settings
->get('layout_match')) : '',
'prefix' => !empty($settings) ? trim($settings
->get('layout_prefix')) : '',
'regex' => !empty($settings) ? trim($settings
->get('layout_regex')) : '',
'negate' => !empty($settings) ? $settings
->get('layout_negate') : 0,
];
$this->listService
->setUp($options);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutPluginAlter:: |
protected | function |
Configure variables based on configuration settings. Overrides PluginAlter:: |
|
PluginAlter:: |
protected | property | The Config factory service. | |
PluginAlter:: |
protected | property | The Entity Type Manager service. | |
PluginAlter:: |
protected | property | List service. | |
PluginAlter:: |
public | function | Alters block definitions. | |
PluginAlter:: |
public static | function |
Instantiates a new instance of this class. Overrides ContainerInjectionInterface:: |
|
PluginAlter:: |
protected | function | PluginAlter constructor. |