function Editor::getFilterFormat
Same name and namespace in other branches
- 8.9.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::getFilterFormat()
- 10 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::getFilterFormat()
- 11.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::getFilterFormat()
Returns the filter format this text editor is associated with.
This could be NULL if the associated filter format is still being created.
Return value
\Drupal\filter\FilterFormatInterface|null
Overrides EditorInterface::getFilterFormat
File
-
core/
modules/ editor/ src/ Entity/ Editor.php, line 135
Class
- Editor
- Defines the configured text editor entity.
Namespace
Drupal\editor\EntityCode
public function getFilterFormat() {
if (!$this->filterFormat) {
$this->filterFormat = \Drupal::entityTypeManager()->getStorage('filter_format')
->load($this->format);
}
return $this->filterFormat;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.