public FieldDefinitionListener::__construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache_backend)
Constructs a new FieldDefinitionListener.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key-value factory.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
File
- core/lib/Drupal/Core/Field/FieldDefinitionListener.php, line 55
Class
- FieldDefinitionListener
- Reacts to field definition CRUD on behalf of the Entity system.
Namespace
Drupal\Core\Field
Code
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache_backend) { $this->entityTypeManager = $entity_type_manager; $this->entityFieldManager = $entity_field_manager; $this->keyValueFactory = $key_value_factory; $this->cacheBackend = $cache_backend; }
Please login to continue.