protected function EntityDisplayFormBase::getPluginOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getPluginOptions()
Returns an array of widget or formatter options for a field.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
Return value
array An array of widget or formatter options.
1 call to EntityDisplayFormBase::getPluginOptions()
- EntityDisplayFormBase::buildFieldRow in core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php - Builds the table row structure for a single field.
File
- core/
modules/ field_ui/ src/ Form/ EntityDisplayFormBase.php, line 768 - Contains \Drupal\field_ui\Form\EntityDisplayFormBase.
Class
- EntityDisplayFormBase
- Base class for EntityDisplay edit forms.
Namespace
Drupal\field_ui\FormCode
protected function getPluginOptions(FieldDefinitionInterface $field_definition) {
$applicable_options = $this
->getApplicablePluginOptions($field_definition);
return $applicable_options + array(
'hidden' => '- ' . $this
->t('Hidden') . ' -',
);
}