You are here

class LayoutPluginAlter in Block Blacklist [Deprecated] 8

Implementation callbacks for layout builder plugin alter hooks.

Hierarchy

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_blacklist
View 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

Namesort descending Modifiers Type Description Overrides
LayoutPluginAlter::setUp protected function Configure variables based on configuration settings. Overrides PluginAlter::setUp
PluginAlter::$blacklistService protected property Blacklist service.
PluginAlter::$configFactory protected property The Config factory service.
PluginAlter::$entityTypeManager protected property The Entity Type Manager service.
PluginAlter::alterBlocks public function Alters block definitions.
PluginAlter::create public static function Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create
PluginAlter::__construct protected function PluginAlter constructor.