You are here

protected function GeshiFilterFilter::decodeEntities in GeSHi Filter for syntax highlighting 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Filter/GeshiFilterFilter.php \Drupal\geshifilter\Plugin\Filter\GeshiFilterFilter::decodeEntities()

Return when we need to decode html entities for this filter.

Return value

bool Return TRUE if we need to decode the entities.

3 calls to GeshiFilterFilter::decodeEntities()
GeshiFilterFilter::prepareCallback in src/Plugin/Filter/GeshiFilterFilter.php
Callback_geshifilter_prepare for preparing input text.
GeshiFilterFilter::prepareMarkdownCallback in src/Plugin/Filter/GeshiFilterFilter.php
Callback for preparing input text from markdown(```) tags.
GeshiFilterFilter::preparePhpCallback in src/Plugin/Filter/GeshiFilterFilter.php
Callback for _geshifilter_prepare for < ?php ... ? > blocks.

File

src/Plugin/Filter/GeshiFilterFilter.php, line 1026

Class

GeshiFilterFilter
Provides a base filter for Geshi Filter.

Namespace

Drupal\geshifilter\Plugin\Filter

Code

protected function decodeEntities() {
  if (!$this->config
    ->get('use_format_specific_options')) {

    // Return global value.
    return $this->config
      ->get('decode_entities');
  }

  // Return value for this filter.
  return $this->settings['general_tags']['decode_entities'];
}