You are here

public function PatternLayout::__construct in UI Patterns 8

Constructs a LocalActionDefault object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

\Drupal\Core\Layout\LayoutDefinition $plugin_definition: The plugin implementation definition.

\Drupal\Core\Render\ElementInfoManagerInterface $element_info: Element info object.

\Drupal\ui_patterns\UiPatternsManager $pattern_manager: Pattern manager service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

Overrides LayoutDefault::__construct

File

modules/ui_patterns_layouts/src/Plugin/Layout/PatternLayout.php, line 59

Class

PatternLayout
Class LayoutDefault.

Namespace

Drupal\ui_patterns_layouts\Plugin\Layout

Code

public function __construct(array $configuration, $plugin_id, LayoutDefinition $plugin_definition, ElementInfoManagerInterface $element_info, UiPatternsManager $pattern_manager, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->elementInfo = $element_info;
  $this->patternManager = $pattern_manager;
  $this->moduleHandler = $module_handler;
}