You are here

public function EntityExtraFieldForm::__construct in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Form/EntityExtraFieldForm.php \Drupal\entity_extra_field\Form\EntityExtraFieldForm::__construct()

Define the extra field type manager.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache_discovery_backend: The cache discovery backend service.

\Drupal\Component\Plugin\PluginManagerInterface $extra_field_type_manager: The extra field type plugin manager.

\Drupal\Component\Plugin\PluginManagerInterface $condition_plugin_manager: The condition plugin manager.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator service.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

File

src/Form/EntityExtraFieldForm.php, line 64

Class

EntityExtraFieldForm
Define entity extra field form.

Namespace

Drupal\entity_extra_field\Form

Code

public function __construct(CacheBackendInterface $cache_discovery_backend, PluginManagerInterface $extra_field_type_manager, PluginManagerInterface $condition_plugin_manager, CacheTagsInvalidatorInterface $cache_tags_invalidator, EntityDisplayRepositoryInterface $entity_display_repository) {
  $this->cacheDiscovery = $cache_discovery_backend;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->extraFieldTypeManager = $extra_field_type_manager;
  $this->conditionPluginManager = $condition_plugin_manager;
  $this->entityDisplayRepository = $entity_display_repository;
}