f363fa9eae1cf35434568933a0df8ce87a68e987
[yaffs-website] / web / core / modules / filter / tests / filter_test_plugin / src / Plugin / Filter / FilterSparkles.php
1 <?php
2
3 namespace Drupal\filter_test_plugin\Plugin\Filter;
4
5 use Drupal\filter\FilterProcessResult;
6 use Drupal\filter\Plugin\FilterBase;
7
8 /**
9  * Provides a filter to limit allowed HTML tags.
10  *
11  * This filter does not do anything, but enabling of its module is done in a
12  * test.
13  *
14  * @see \Drupal\Tests\filter\Functional\FilterFormTest::testFilterForm()
15  *
16  * @Filter(
17  *   id = "filter_sparkles",
18  *   title = @Translation("Sparkles filter"),
19  *   type = Drupal\filter\Plugin\FilterInterface::TYPE_HTML_RESTRICTOR,
20  *   settings = {},
21  *   weight = -10
22  * )
23  */
24 class FilterSparkles extends FilterBase {
25
26   /**
27    * {@inheritdoc}
28    */
29   public function process($text, $langcode) {
30     return new FilterProcessResult($text);
31   }
32
33 }