protected function Editor::textFormatHasTransformationFilters

Returns whether the text format has transformation filters.

1 call to Editor::textFormatHasTransformationFilters()
Editor::getMetadata in drupal/core/modules/editor/lib/Drupal/editor/Plugin/InPlaceEditor/Editor.php
Implements \Drupal\edit\Plugin\EditPluginInterface::getMetadata().

File

drupal/core/modules/editor/lib/Drupal/editor/Plugin/InPlaceEditor/Editor.php, line 65
Contains \Drupal\editor\Plugin\InPlaceEditor\Editor.

Class

Editor
Defines the formatted text editor.

Namespace

Drupal\editor\Plugin\InPlaceEditor

Code

protected function textFormatHasTransformationFilters($format_id) {
  return (bool) count(array_intersect(array(
    FILTER_TYPE_TRANSFORM_REVERSIBLE,
    FILTER_TYPE_TRANSFORM_IRREVERSIBLE,
  ), filter_get_filter_types_by_format($format_id)));
}