You are here

protected property FilterFormat::$filters in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::filters
  2. 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::filters

Configured filters for this text format.

An associative array of filters assigned to the text format, keyed by the instance ID of each filter and using the properties:

  • id: The plugin ID of the filter plugin instance.
  • provider: The name of the provider that owns the filter.
  • status: (optional) A Boolean indicating whether the filter is enabled in the text format. Defaults to FALSE.
  • weight: (optional) The weight of the filter in the text format. Defaults to 0.
  • settings: (optional) An array of configured settings for the filter.

Use FilterFormat::filters() to access the actual filters.

Type: array

File

core/modules/filter/src/Entity/FilterFormat.php, line 122

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Entity

Code

protected $filters = [];