You are here

abstract protected function EntityDisplayFormBase::getDefaultPlugin in Drupal 8

Same name and namespace in other branches
  1. 9 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
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 817

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected abstract function getDefaultPlugin($field_type);