You are here

public function LayoutParagraphsBehavior::__construct in Layout Paragraphs 2.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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The grid discovery service.

\Drupal\layout_paragraphs\LayoutParagraphsRendererService $layout_paragraphs_renderer_service: The layout paragraphs service.

File

src/Plugin/paragraphs/Behavior/LayoutParagraphsBehavior.php, line 82

Class

LayoutParagraphsBehavior
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, EntityTypeManagerInterface $entity_type_manager, LayoutParagraphsRendererService $layout_paragraphs_renderer_service) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_field_manager);
  $this->layoutPluginManager = $layout_plugin_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->layoutParagraphsRendererService = $layout_paragraphs_renderer_service;
}