You are here

public function EntityFormBlockDeriver::__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\EntityDisplayRepositoryInterface $entity_display_repository: The entity display respository service.

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

File

src/Plugin/Deriver/EntityFormBlockDeriver.php, line 56

Class

EntityFormBlockDeriver
Provides a deriver class.

Namespace

Drupal\flexiform\Plugin\Deriver

Code

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