protected function Editor::textFormatHasTransformationFilters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/editor/src/Plugin/InPlaceEditor/Editor.php \Drupal\editor\Plugin\InPlaceEditor\Editor::textFormatHasTransformationFilters()
Returns whether the text format has transformation filters.
1 call to Editor::textFormatHasTransformationFilters()
- Editor::getMetadata in core/
modules/ editor/ src/ Plugin/ InPlaceEditor/ Editor.php - Generates metadata that is needed specifically for this editor.
File
- core/
modules/ editor/ src/ Plugin/ InPlaceEditor/ Editor.php, line 63 - Contains \Drupal\editor\Plugin\InPlaceEditor\Editor.
Class
- Editor
- Defines the formatted text in-place editor.
Namespace
Drupal\editor\Plugin\InPlaceEditorCode
protected function textFormatHasTransformationFilters($format_id) {
$format = entity_load('filter_format', $format_id);
return (bool) count(array_intersect(array(
FilterInterface::TYPE_TRANSFORM_REVERSIBLE,
FilterInterface::TYPE_TRANSFORM_IRREVERSIBLE,
), $format
->getFiltertypes()));
}