FieldConfigListBuilder::__construct

public FieldConfigListBuilder::__construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager)

Constructs a new class instance.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type manager

Overrides EntityListBuilder::__construct

File

core/modules/field_ui/src/FieldConfigListBuilder.php, line 58

Class

FieldConfigListBuilder
Provides lists of field config entities.

Namespace

Drupal\field_ui

Code

public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager) {
  parent::__construct($entity_type, $entity_manager->getStorage($entity_type->id()));

  $this->entityManager = $entity_manager;
  $this->fieldTypeManager = $field_type_manager;
}
doc_Drupal
2016-10-29 09:11:14
Comments
Leave a Comment

Please login to continue.