class FilterTestStatic in Drupal 10
Same name and namespace in other branches
- 8 core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterTestStatic.php \Drupal\filter_test_plugin\Plugin\Filter\FilterTestStatic
- 9 core/modules/filter/tests/filter_test_plugin/src/Plugin/Filter/FilterTestStatic.php \Drupal\filter_test_plugin\Plugin\Filter\FilterTestStatic
Provides a filter that returns the same static text.
Plugin annotation
@Filter(
id = "filter_static_text",
title = @Translation("Static filter"),
type = Drupal\filter\Plugin\FilterInterface::TYPE_HTML_RESTRICTOR,
settings = {},
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\filter\Plugin\FilterBase implements FilterInterface
- class \Drupal\filter_test_plugin\Plugin\Filter\FilterTestStatic
- class \Drupal\filter\Plugin\FilterBase implements FilterInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of FilterTestStatic
File
- core/
modules/ filter/ tests/ filter_test_plugin/ src/ Plugin/ Filter/ FilterTestStatic.php, line 18
Namespace
Drupal\filter_test_plugin\Plugin\FilterView source
class FilterTestStatic extends FilterBase {
/**
* {@inheritdoc}
*/
public function process($text, $langcode) {
return new FilterProcessResult('filtered text');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
protected | property | ||
DependencySerializationTrait:: |
public | function | 2 | |
DependencySerializationTrait:: |
public | function | 2 | |
FilterBase:: |
public | property | The name of the provider that owns this filter. | |
FilterBase:: |
public | property | An associative array containing the configured settings of this filter. | |
FilterBase:: |
public | property | A Boolean indicating whether this filter is enabled. | |
FilterBase:: |
public | property | The weight of this filter compared to others in a filter collection. | |
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | 1 | |
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterBase:: |
public | function | ||
FilterInterface:: |
constant | HTML tag and attribute restricting filters to prevent XSS attacks. | ||
FilterInterface:: |
constant | Non-HTML markup language filters that generate HTML. | ||
FilterInterface:: |
constant | Irreversible transformation filters. | ||
FilterInterface:: |
constant | Reversible transformation filters. | ||
FilterTestStatic:: |
public | function |
Performs the filter processing. Overrides FilterInterface:: |
|
MessengerTrait:: |
protected | property | The messenger. | 18 |
MessengerTrait:: |
public | function | Gets the messenger. | 18 |
MessengerTrait:: |
public | function | Sets the messenger. | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function | ||
PluginBase:: |
public | function | ||
PluginBase:: |
public | function | 2 | |
PluginBase:: |
public | function | ||
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
StringTranslationTrait:: |
protected | property | The string translation service. | 3 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 1 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |