EntityDisplayFormBase::__construct

public EntityDisplayFormBase::__construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager)

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 59

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;
}
doc_Drupal
2016-10-29 09:05:27
Comments
Leave a Comment

Please login to continue.