protected property FilterFormat::$roles

List of user role IDs to grant access to use this format on initial creation.

This property is always empty and unused for existing text formats.

Default configuration objects of modules and installation profiles are allowed to specify a list of user role IDs to grant access to.

This property only has an effect when a new text format is created and the list is not empty. By default, no user role is allowed to use a new format.

Type: array

File

drupal/core/modules/filter/lib/Drupal/filter/Plugin/Core/Entity/FilterFormat.php, line 89
Contains \Drupal\filter\Plugin\Core\Entity\FilterFormat.

Class

FilterFormat
Represents a text format.

Namespace

Drupal\filter\Plugin\Core\Entity

Code

protected $roles;