public function LayoutParagraphsBuilder::__construct in Layout Paragraphs 2.0.x
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- src/
Element/ LayoutParagraphsBuilder.php, line 111
Class
- LayoutParagraphsBuilder
- Defines a render element for building the Layout Builder UI.
Namespace
Drupal\layout_paragraphs\ElementCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LayoutParagraphsLayoutTempstoreRepository $tempstore_repository, EntityTypeManagerInterface $entity_type_manager, LayoutPluginManager $layout_plugin_manager, Renderer $renderer, EntityTypeBundleInfo $entity_type_bundle_info, EntityRepositoryInterface $entity_repository) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->tempstore = $tempstore_repository;
$this->entityTypeManager = $entity_type_manager;
$this->layoutPluginManager = $layout_plugin_manager;
$this->renderer = $renderer;
$this->entityTypeBundleInfo = $entity_type_bundle_info;
$this->entityRepository = $entity_repository;
}