Editor::hasAssociatedFilterFormat

public 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 114

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public function hasAssociatedFilterFormat() {
  return $this->format !== NULL;
}
doc_Drupal
2016-10-29 09:03:43
Comments
Leave a Comment

Please login to continue.