public function Editor::hasAssociatedFilterFormat in Drupal 8
Same name and namespace in other branches
- 9 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;
}