function 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  - Returns the ID of the default widget or formatter plugin for a field type.
 - EntityViewDisplayEditForm::getDefaultPlugin in core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php  - Returns the ID of the default widget or formatter plugin for a field type.
 
File
- 
              core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 793  
Class
- EntityDisplayFormBase
 - Base class for EntityDisplay edit forms.
 
Namespace
Drupal\field_ui\FormCode
abstract protected function getDefaultPlugin($field_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.