public function FilterCaption::allowedHtmlTags in Markdown 8.2
Retrieves the allowed HTML tags.
Parameters
\Drupal\markdown\Plugin\Markdown\ParserInterface $parser: The parser associated with this plugin.
\Drupal\Core\Theme\ActiveTheme $activeTheme: Optional. The active them. This is used as an indicator when in "render mode".
Return value
array An associative array of allowed HTML tags.
Overrides AllowedHtmlInterface::allowedHtmlTags
File
- src/
Plugin/ Markdown/ AllowedHtml/ FilterCaption.php, line 29
Class
- FilterCaption
- Filter module support for "filter_caption" filter.
Namespace
Drupal\markdown\Plugin\Markdown\AllowedHtmlCode
public function allowedHtmlTags(ParserInterface $parser, ActiveTheme $activeTheme = NULL) {
return [
'*' => [
'data-caption' => TRUE,
],
];
}