You are here

protected function PluginAlter::setUp in Block Blacklist [Deprecated] 8

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_blacklist

Code

protected function setUp() {
  $settings = $this->configFactory
    ->get('block_blacklist.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')) : '',
  ];
  $this->blacklistService
    ->setUp($options);
}