function EntityDisplayFormBase::getDefaultPlugin
Same name in other branches
- 9 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDefaultPlugin()
- 8.9.x core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDefaultPlugin()
- 10 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getDefaultPlugin()
Returns the ID of the default widget or formatter plugin for a field type.
Parameters
string $field_type: The field type.
Return value
string The widget or formatter plugin ID.
1 call to EntityDisplayFormBase::getDefaultPlugin()
- EntityDisplayFormBase::buildFieldRow in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Builds the table row structure for a single field.
2 methods override EntityDisplayFormBase::getDefaultPlugin()
- EntityFormDisplayEditForm::getDefaultPlugin in core/
modules/ field_ui/ src/ Form/ EntityFormDisplayEditForm.php - EntityViewDisplayEditForm::getDefaultPlugin in core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php
File
-
core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 801
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
protected abstract function getDefaultPlugin($field_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.