function WidgetBase::getFilteredDescription
Same name in other branches
- 9 core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFilteredDescription()
- 8.9.x core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFilteredDescription()
- 11.x core/lib/Drupal/Core/Field/WidgetBase.php \Drupal\Core\Field\WidgetBase::getFilteredDescription()
Returns the filtered field description.
Return value
\Drupal\Core\Field\FieldFilteredMarkup The filtered field description, with tokens replaced.
4 calls to WidgetBase::getFilteredDescription()
- FileWidget::formMultipleElements in core/
modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php - Overrides \Drupal\Core\Field\WidgetBase::formMultipleElements().
- ImageWidget::formMultipleElements in core/
modules/ image/ src/ Plugin/ Field/ FieldWidget/ ImageWidget.php - Overrides \Drupal\file\Plugin\Field\FieldWidget\FileWidget::formMultipleElements().
- WidgetBase::form in core/
lib/ Drupal/ Core/ Field/ WidgetBase.php - Creates a form element for a field.
- WidgetBase::formMultipleElements in core/
lib/ Drupal/ Core/ Field/ WidgetBase.php - Special handling to create form elements for multiple values.
File
-
core/
lib/ Drupal/ Core/ Field/ WidgetBase.php, line 719
Class
- WidgetBase
- Base class for 'Field widget' plugin implementations.
Namespace
Drupal\Core\FieldCode
protected function getFilteredDescription() {
return FieldFilteredMarkup::create(\Drupal::token()->replace((string) $this->fieldDefinition
->getDescription()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.