FilterTestStatic.php
Same filename in other branches
Namespace
Drupal\filter_test_plugin\Plugin\FilterFile
-
core/
modules/ filter/ tests/ filter_test_plugin/ src/ Plugin/ Filter/ FilterTestStatic.php
View source
<?php
namespace Drupal\filter_test_plugin\Plugin\Filter;
use Drupal\filter\FilterProcessResult;
use Drupal\filter\Plugin\FilterBase;
/**
* Provides a filter that returns the same static text.
*
* @Filter(
* id = "filter_static_text",
* title = @Translation("Static filter"),
* type = Drupal\filter\Plugin\FilterInterface::TYPE_HTML_RESTRICTOR,
* settings = {},
* )
*/
class FilterTestStatic extends FilterBase {
/**
* {@inheritdoc}
*/
public function process($text, $langcode) {
return new FilterProcessResult('filtered text');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FilterTestStatic | Provides a filter that returns the same static text. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.