class LayoutPluginAlter in Block Blacklist [Deprecated] 8
Implementation callbacks for layout builder plugin alter hooks.
Hierarchy
- class \Drupal\block_blacklist\PluginAlter implements ContainerInjectionInterface
- class \Drupal\block_blacklist\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_blacklistView source
class LayoutPluginAlter extends PluginAlter {
/**
* {@inheritdoc}
*/
protected function setUp() {
$settings = $this->configFactory
->get('block_blacklist.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')) : '',
];
$this->blacklistService
->setUp($options);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutPluginAlter:: |
protected | function |
Configure variables based on configuration settings. Overrides PluginAlter:: |
|
PluginAlter:: |
protected | property | Blacklist service. | |
PluginAlter:: |
protected | property | The Config factory service. | |
PluginAlter:: |
protected | property | The Entity Type Manager 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. |