You are here

public function LayoutParagraphsPlugin::__construct in Layout Paragraphs 1.0.x

ParagraphsLayoutPlugin constructor.

Parameters

array $configuration: The configuration array.

string $plugin_id: This plugin id.

mixed $plugin_definition: Plugin definition.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: Entity field manager service.

\Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager: The grid discovery service.

File

src/Plugin/paragraphs/Behavior/LayoutParagraphsPlugin.php, line 46

Class

LayoutParagraphsPlugin
Provides a way to define grid based layouts.

Namespace

Drupal\layout_paragraphs\Plugin\paragraphs\Behavior

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityFieldManager $entity_field_manager, LayoutPluginManagerInterface $layout_plugin_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
  $this->layoutPluginManager = $layout_plugin_manager;
}