case 'JustifyBlock':
if (!
isset($alignment_mapped)) { $alignment_mapped = TRUE;
return ['alignment'
];
} return NULL;
case 'HorizontalRule':
return ['horizontalLine'
];
case 'Format':
if ($text_format_html_restrictions->
isUnrestricted()) { // When no restrictions exist, all tags possibly supported by "Format"
// in CKEditor 4 must be supported.
return ['heading', 'codeBlock'
];
} $allowed_elements =
$text_format_html_restrictions->
getAllowedElements();
// Check if <h*> is supported.
// Merely checking the existence of the array key is sufficient; this
// plugin does not set or need any additional attributes.
// @see \Drupal\filter\Plugin\FilterInterface::getHTMLRestrictions()
$intersect =
array_intersect(['h2', 'h3', 'h4', 'h5', 'h6'
],
array_keys($allowed_elements));