You are here

interface AllowedHtmlInterface in Markdown 8.2

Interface for Markdown Allowed HTML plugins.

Hierarchy

Expanded class hierarchy of AllowedHtmlInterface

All classes that implement AllowedHtmlInterface

17 files declare their use of AllowedHtmlInterface
AllowedHtmlManager.php in src/PluginManager/AllowedHtmlManager.php
Cmark.php in src/Plugin/Markdown/Pecl/Cmark.php
CommonMark.php in src/Plugin/Markdown/CommonMark/CommonMark.php
EmojiExtension.php in src/Plugin/Markdown/CommonMark/Extension/EmojiExtension.php
ExternalLinkExtension.php in src/Plugin/Markdown/CommonMark/Extension/ExternalLinkExtension.php

... See full list

File

src/Plugin/Markdown/AllowedHtmlInterface.php, line 11

Namespace

Drupal\markdown\Plugin\Markdown
View source
interface AllowedHtmlInterface extends PluginInspectionInterface {

  /**
   * Retrieves the allowed HTML tags.
   *
   * @param \Drupal\markdown\Plugin\Markdown\ParserInterface $parser
   *   The parser associated with this plugin.
   * @param \Drupal\Core\Theme\ActiveTheme $activeTheme
   *   Optional. The active them. This is used as an indicator when in
   *   "render mode".
   *
   * @return array
   *   An associative array of allowed HTML tags.
   */
  public function allowedHtmlTags(ParserInterface $parser, ActiveTheme $activeTheme = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
AllowedHtmlInterface::allowedHtmlTags public function Retrieves the allowed HTML tags. 11
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2