You are here

public function FlexiformManager::__construct in Flexiform 8

Construct a flexiform manager object.

Parameters

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

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.

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

File

src/FlexiformManager.php, line 55

Class

FlexiformManager
Provides the Flexiform manager.

Namespace

Drupal\flexiform

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ClassResolverInterface $class_resolver, TranslationInterface $translation, ModuleHandlerInterface $module_handler) {
  $this->entityTypeManager = $entity_type_manager;
  $this->classResolver = $class_resolver;
  $this->stringTranslation = $translation;
  $this->moduleHandler = $module_handler;
}