FilterSettings::$allowedHtmlDefaultAttributes

Same name and namespace in other branches
  1. 9 core/modules/filter/src/Plugin/migrate/process/FilterSettings.php \Drupal\filter\Plugin\migrate\process\FilterSettings::allowedHtmlDefaultAttributes
  2. 8.9.x core/modules/filter/src/Plugin/migrate/process/FilterSettings.php \Drupal\filter\Plugin\migrate\process\FilterSettings::allowedHtmlDefaultAttributes
  3. 10 core/modules/filter/src/Plugin/migrate/process/FilterSettings.php \Drupal\filter\Plugin\migrate\process\FilterSettings::allowedHtmlDefaultAttributes

Default attributes for migrating filter_html's 'allowed_html' setting.

Type: string[]

File

core/modules/filter/src/Plugin/migrate/process/FilterSettings.php, line 26

Class

FilterSettings
Adds the default allowed attributes to filter_html's allowed_html setting.

Namespace

Drupal\filter\Plugin\migrate\process

Code

protected $allowedHtmlDefaultAttributes = [
    '<a>' => '<a href hreflang>',
    '<blockquote>' => '<blockquote cite>',
    '<ol>' => '<ol start type>',
    '<ul>' => '<ul type>',
    '<img>' => '<img src alt height width>',
    '<h2>' => '<h2 id>',
    '<h3>' => '<h3 id>',
    '<h4>' => '<h4 id>',
    '<h5>' => '<h5 id>',
    '<h6>' => '<h6 id>',
];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.