You are here

public function ActiveEntity::__construct in Configuration selector 8.2

Same name and namespace in other branches
  1. 8 src/ActiveEntity.php \Drupal\config_selector\ActiveEntity::__construct()

ActiveEntity constructor.

Parameters

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

File

src/ActiveEntity.php, line 27

Class

ActiveEntity
Helper for getting the active entity or ID of any config_selector feature.

Namespace

Drupal\config_selector

Code

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