You are here

protected property FilterSettings::$allowedHtmlDefaultAttributes in Drupal 8

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. 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>',
];