You are here

public function FormEntityProfileTypeDeriver::__construct in Flexiform 8

Constructs new EntityViewDeriver.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity bundle info service.

File

src/Plugin/Deriver/FormEntityProfileTypeDeriver.php, line 45

Class

FormEntityProfileTypeDeriver
Provides a deriver class.

Namespace

Drupal\flexiform\Plugin\Deriver

Code

public function __construct(EntityTypeManagerInterface $entity_manager, TranslationInterface $string_translation, EntityTypeBundleInfoInterface $entity_bundle_info) {
  $this->entityBundleInfo = $entity_bundle_info;
  $this->entityTypeManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}