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()));
}
doc_Drupal
2016-10-29 09:56:41
Comments
Leave a Comment

Please login to continue.