function FieldConfigEditForm::__construct

Same name and namespace in other branches
  1. 11.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
  2. 10 core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
  3. 9 core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()
  4. 8.9.x core/modules/field_ui/src/Form/FieldConfigEditForm.php \Drupal\field_ui\Form\FieldConfigEditForm::__construct()

File

core/modules/field_ui/src/Form/FieldConfigEditForm.php, line 68

Class

FieldConfigEditForm
Provides a form for the field settings form.

Namespace

Drupal\field_ui\Form

Code

public function __construct(protected EntityTypeBundleInfoInterface $entityTypeBundleInfo, protected TypedDataManagerInterface $typedDataManager, protected EntityDisplayRepositoryInterface $entityDisplayRepository, protected PrivateTempStore $tempStore, protected ElementInfoManagerInterface $elementInfo, ?PluginManagerInterface $field_type_plugin_manager = NULL) {
  if (!$field_type_plugin_manager) {
    @trigger_error('Calling ' . __METHOD__ . ' without the $field_type_plugin_manager argument is deprecated in drupal:11.4.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
    $field_type_plugin_manager = \Drupal::service('plugin.manager.field.field_type');
  }
  $this->fieldTypePluginManager = $field_type_plugin_manager;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.