function Editor::hasAssociatedFilterFormat
Same name and namespace in other branches
- 9 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::hasAssociatedFilterFormat()
- 10 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::hasAssociatedFilterFormat()
- 11.x core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::hasAssociatedFilterFormat()
Returns whether this text editor has an associated filter format.
A text editor may be created at the same time as the filter format it's going to be associated with; in that case, no filter format object is available yet.
Return value
bool
Overrides EditorInterface::hasAssociatedFilterFormat
File
-
core/
modules/ editor/ src/ Entity/ Editor.php, line 121
Class
- Editor
- Defines the configured text editor entity.
Namespace
Drupal\editor\EntityCode
public function hasAssociatedFilterFormat() {
return $this->format !== NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.