You are here

public function EntityRenderHandler::__construct in Acquia Lift Connector 8.4

EntityRenderHandler constructor.

Parameters

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher.

\Drupal\Core\Config\ImmutableConfig $config: The Acquia Lift publishing configuration object.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

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

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

\Drupal\Component\Uuid\UuidInterface $uuid_generator: The UUID generator.

\Drupal\acquia_contenthub\Client\ClientFactory $client_factory: The client factory.

File

modules/acquia_lift_publisher/src/EventSubscriber/Cdf/EntityRenderHandler.php, line 131

Class

EntityRenderHandler
Class EntityRenderHandler.

Namespace

Drupal\acquia_lift_publisher\EventSubscriber\Cdf

Code

public function __construct(AccountSwitcherInterface $account_switcher, ImmutableConfig $config, RendererInterface $renderer, EntityTypeManagerInterface $entity_type_manager, BlockManagerInterface $block_manager, UuidInterface $uuid_generator, ClientFactory $client_factory, LanguageDefault $language_default, TranslationManager $translation_manager) {
  $this->accountSwitcher = $account_switcher;
  $this->publisherSettings = $config;
  $this->clientFactory = $client_factory;
  $this->origin = $client_factory
    ->getSettings()
    ->getUuid();
  $this->renderer = $renderer;
  $this->entityTypeManager = $entity_type_manager;
  $this->blockManager = $block_manager;
  $this->uuidGenerator = $uuid_generator;
  $this->languageDefault = $language_default;
  $this->translationManager = $translation_manager;
}