protected function PluginAlter::setUp in Block List Override 1.0.x
Configure variables based on configuration settings.
1 call to PluginAlter::setUp()
- PluginAlter::__construct in src/
PluginAlter.php - PluginAlter constructor.
1 method overrides PluginAlter::setUp()
- LayoutPluginAlter::setUp in src/
LayoutPluginAlter.php - Configure variables based on configuration settings.
File
- src/
PluginAlter.php, line 71
Class
- PluginAlter
- Implementation callbacks for plugin alter hooks.
Namespace
Drupal\block_list_overrideCode
protected function setUp() {
$settings = $this->configFactory
->get('block_list_override.settings');
$options = [
'match' => !empty($settings) ? trim($settings
->get('system_match')) : '',
'prefix' => !empty($settings) ? trim($settings
->get('system_prefix')) : '',
'regex' => !empty($settings) ? trim($settings
->get('system_regex')) : '',
'negate' => !empty($settings) ? $settings
->get('system_negate') : 0,
];
$this->listService
->setUp($options);
}