You are here

public function TermEntityNormalizer::__construct in Default Content Extras 8

Constructs a TermEntityNormalizer object.

Parameters

\Drupal\hal\LinkManager\LinkManagerInterface $link_manager: The hypermedia link manager.

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

Overrides ContentEntityNormalizer::__construct

File

src/Normalizer/TermEntityNormalizer.php, line 47

Class

TermEntityNormalizer
Defines a class for normalizing terms.

Namespace

Drupal\default_content_extra\Normalizer

Code

public function __construct(LinkManagerInterface $link_manager, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, EntityTypeRepositoryInterface $entity_type_repository, EntityFieldManagerInterface $entity_field_manager, ConfigFactoryInterface $config_factory) {
  parent::__construct($link_manager, $entity_type_manager, $module_handler, $entity_type_repository, $entity_field_manager);
  $this->config = $config_factory
    ->get('default_content_extra.settings');
}