You are here

public function EntityDecorator::__construct in Automatic Entity Label 8

Same name and namespace in other branches
  1. 8.3 src/EntityDecorator.php \Drupal\auto_entitylabel\EntityDecorator::__construct()
  2. 8.2 src/EntityDecorator.php \Drupal\auto_entitylabel\EntityDecorator::__construct()

Constructs an EntityDecorator object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Configuration factory.

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

\Drupal\Core\Utility\Token $token: Token manager.

File

src/EntityDecorator.php, line 60

Class

EntityDecorator
Provides an content entity decorator for automatic label generation.

Namespace

Drupal\auto_entitylabel

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, Token $token) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->token = $token;
}