You are here

public function EntityPathSubscriber::__construct in Tome 8

Constructs the EntityPathSubscriber object.

Parameters

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

modules/tome_static/src/EventSubscriber/EntityPathSubscriber.php, line 49

Class

EntityPathSubscriber
Adds entity placeholder paths to the list of paths to export.

Namespace

Drupal\tome_static\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->languageManager = $language_manager;
}