function FieldConfigEditForm::__construct
Same name in other branches
- 9 core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
- 8.9.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
- 11.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
Constructs a new FieldConfigDeleteForm object.
Parameters
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info service.
\Drupal\Core\TypedData\TypedDataManagerInterface $typedDataManager: The type data manger.
\Drupal\Core\Entity\EntityDisplayRepositoryInterface|null $entityDisplayRepository: The entity display repository.
\Drupal\Core\TempStore\PrivateTempStore|null $tempStore: The private tempstore.
\Drupal\Core\Render\ElementInfoManagerInterface|null $elementInfo: The element info manager.
File
-
core/
modules/ field_ui/ src/ Form/ FieldConfigEditForm.php, line 76
Class
- FieldConfigEditForm
- Provides a form for the field settings form.
Namespace
Drupal\field_ui\FormCode
public function __construct(EntityTypeBundleInfoInterface $entity_type_bundle_info, TypedDataManagerInterface $typedDataManager, ?EntityDisplayRepositoryInterface $entityDisplayRepository = NULL, ?PrivateTempStore $tempStore = NULL, ?ElementInfoManagerInterface $elementInfo = NULL) {
$this->entityTypeBundleInfo = $entity_type_bundle_info;
if ($this->entityDisplayRepository === NULL) {
@trigger_error('Calling FieldConfigEditForm::__construct() without the $entityDisplayRepository argument is deprecated in drupal:10.2.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3383771', E_USER_DEPRECATED);
$this->entityDisplayRepository = \Drupal::service('entity_display.repository');
}
if ($this->tempStore === NULL) {
@trigger_error('Calling FieldConfigEditForm::__construct() without the $tempStore argument is deprecated in drupal:10.2.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3383771', E_USER_DEPRECATED);
$this->tempStore = \Drupal::service('tempstore.private')->get('field_ui');
}
if ($this->elementInfo === NULL) {
@trigger_error('Calling FieldConfigEditForm::__construct() without the $elementInfo argument is deprecated in drupal:10.2.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3383771', E_USER_DEPRECATED);
$this->elementInfo = \Drupal::service('plugin.manager.element_info');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.