You are here

public function ReusableBlocks::__construct in Panopoly Magic 8.2

ReusableBlocks constructor.

Parameters

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

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

\Drupal\Core\Block\BlockManagerInterface $block_manager: The block manager.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/Alterations/ReusableBlocks.php, line 65

Class

ReusableBlocks
A service for altering some Layout Builder forms to allow reusable blocks.

Namespace

Drupal\panopoly_magic\Alterations

Code

public function __construct(LayoutTempstoreRepositoryInterface $layout_tempstore_repository, EntityTypeManagerInterface $entity_type_manager, BlockManagerInterface $block_manager, AccountProxyInterface $current_user, TranslationInterface $string_translation) {
  $this->layoutTempstoreRepository = $layout_tempstore_repository;
  $this->entityTypeManager = $entity_type_manager;
  $this->blockManager = $block_manager;
  $this->currentUser = $current_user;
  $this->stringTranslation = $string_translation;
}