You are here

public function LayoutBuilder::__construct in Layout Builder Symmetric Translations 8

Constructs a new LayoutBuilder.

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.

\Drupal\layout_builder\LayoutTempstoreRepositoryInterface $layout_tempstore_repository: The layout tempstore repository.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: (optional) The entity type manager.

Overrides LayoutBuilder::__construct

File

src/Element/LayoutBuilder.php, line 48

Class

LayoutBuilder
Extended LayoutBuilder element to remove actions for translations.

Namespace

Drupal\layout_builder_st\Element

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LayoutTempstoreRepositoryInterface $layout_tempstore_repository, MessengerInterface $messenger, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $layout_tempstore_repository, $messenger);
  $this->entityTypeManager = $entity_type_manager;
}