Contains \Drupal\filter_test\Plugin\Filter\FilterTestUncacheable.
<?php
/**
* @file
* Contains \Drupal\filter_test\Plugin\Filter\FilterTestUncacheable.
*/
namespace Drupal\filter_test\Plugin\Filter;
use Drupal\filter\Annotation\Filter;
use Drupal\Core\Annotation\Translation;
use Drupal\filter\Plugin\FilterBase;
/**
* Provides a test filter that is uncacheable.
*
* @Filter(
* id = "filter_test_uncacheable",
* module = "filter_test",
* title = @Translation("Uncacheable filter"),
* description = @Translation("Does nothing, but makes a text format uncacheable"),
* type = FILTER_TYPE_TRANSFORM_IRREVERSIBLE,
* cache = false
* )
*/
class FilterTestUncacheable extends FilterBase {
/**
* {@inheritdoc}
*/
public function process($text, $langcode, $cache, $cache_id) {
return $text;
}
}
Name | Description |
---|---|
FilterTestUncacheable | Provides a test filter that is uncacheable. |