protected function WidgetBase::getFilteredDescription

protected WidgetBase::getFilteredDescription()

Returns the filtered field description.

Return value

\Drupal\Core\Field\FieldFilteredMarkup The filtered field description, with tokens replaced.

File

core/lib/Drupal/Core/Field/WidgetBase.php, line 571

Class

WidgetBase
Base class for 'Field widget' plugin implementations.

Namespace

Drupal\Core\Field

Code

protected function getFilteredDescription() {
  return FieldFilteredMarkup::create(\Drupal::token()->replace($this->fieldDefinition->getDescription()));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!WidgetBase.php/function/WidgetBase::getFilteredDescription/8.1.x