You are here

public function EntityDecorator::__construct in Automatic Entity Label 8.3

Same name and namespace in other branches
  1. 8 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.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.

File

src/EntityDecorator.php, line 63

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, ModuleHandlerInterface $module_handler) {
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->token = $token;
  $this->moduleHandler = $module_handler;
}