3 namespace Drupal\filter\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an filter annotation object.
10 * Plugin Namespace: Plugin\Filter
12 * For a working example, see \Drupal\filter\Plugin\Filter\FilterHtml
14 * @see \Drupal\filter\FilterPluginManager
15 * @see \Drupal\filter\Plugin\FilterInterface
16 * @see \Drupal\filter\Plugin\FilterBase
21 class Filter extends Plugin {
31 * The name of the provider that owns the filter.
38 * The human-readable name of the filter.
40 * This is used as an administrative summary of what the filter does.
42 * @ingroup plugin_translatable
44 * @var \Drupal\Core\Annotation\Translation
49 * Additional administrative information about the filter's behavior.
51 * @ingroup plugin_translatable
53 * @var \Drupal\Core\Annotation\Translation (optional)
55 public $description = '';
58 * A default weight for the filter in new text formats.
65 * Whether this filter is enabled or disabled by default.
67 * @var bool (optional)
69 public $status = FALSE;
72 * The default settings for the filter.
74 * @var array (optional)
76 public $settings = [];