public function EmojiExtension::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/ CommonMark/ Extension/ EmojiExtension.php, line 62
Class
- EmojiExtension
- Emoji extension.
Namespace
Drupal\markdown\Plugin\Markdown\CommonMark\ExtensionCode
public function allowedHtmlTags(ParserInterface $parser, ActiveTheme $activeTheme = NULL) {
return [
'img' => [
'class' => 'emoji',
'data-emoji' => TRUE,
],
];
}