You are here

public function EntityDisplayFormBase::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::__construct()

Constructs a new EntityDisplayFormBase.

Parameters

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

\Drupal\Component\Plugin\PluginManagerBase $plugin_manager: The widget or formatter plugin manager.

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 66
Contains \Drupal\field_ui\Form\EntityDisplayFormBase.

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

public function __construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager) {
  $this->fieldTypes = $field_type_manager
    ->getDefinitions();
  $this->pluginManager = $plugin_manager;
}