interface RenderStrategyInterface in Markdown 8.2
Interface for supporting markdown render strategies.
Hierarchy
- interface \Drupal\markdown\Plugin\Markdown\RenderStrategyInterface
Expanded class hierarchy of RenderStrategyInterface
All classes that implement RenderStrategyInterface
1 file declares its use of RenderStrategyInterface
File
- src/
Plugin/ Markdown/ RenderStrategyInterface.php, line 10
Namespace
Drupal\markdown\Plugin\MarkdownView source
interface RenderStrategyInterface {
/**
* Strategy used to filter the output of parsed markdown.
*
* @var string
*/
const FILTER_OUTPUT = 'filter_output';
/**
* Strategy used to escape HTML input prior to parsing markdown.
*
* @var string
*/
const ESCAPE_INPUT = 'escape_input';
/**
* The documentation URL for further explaining render strategies.
*
* @var string
*/
const DOCUMENTATION_URL = MarkdownInterface::DOCUMENTATION_URL . '/parsers/render-strategy';
/**
* The URL for explaining Markdown and XSS; render strategies.
*
* @var string
*
* @deprecated in markdown:8.x-2.0 and is removed from markdown:3.0.0. Use
* \Drupal\markdown\Plugin\Markdown\RenderStrategyInterface::DOCUMENTATION_URL
* instead with a #xss fragment appended.
* @see https://www.drupal.org/project/markdown/issues/3142418
*/
const MARKDOWN_XSS_URL = self::DOCUMENTATION_URL . '#xss';
/**
* No render strategy.
*
* @var string
*/
const NONE = 'none';
/**
* Strategy used to remove HTML input prior to parsing markdown.
*
* @var string
*/
const STRIP_INPUT = 'strip_input';
/**
* Retrieves the custom (user provided) allowed HTML.
*
* @return string
* The user provided (custom) allowed HTML.
*
* @deprecated in markdown:8.x-2.0 and is removed from markdown:3.0.0.
* Use RenderStrategyInterface::getCustomAllowedHtml instead.
* @see https://www.drupal.org/project/markdown/issues/3142418
*/
public function getAllowedHtml();
/**
* Retrieves the allowed HTML plugins relevant to the object.
*
* @return string[]
* An indexed array of allowed HTML plugins identifiers.
*/
public function getAllowedHtmlPlugins();
/**
* Retrieves the custom (user provided) allowed HTML.
*
* @return string
* The user provided (custom) allowed HTML.
*/
public function getCustomAllowedHtml();
/**
* Retrieves the render strategy to use.
*
* @return string
* The render strategy.
*/
public function getRenderStrategy();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RenderStrategyInterface:: |
constant | The documentation URL for further explaining render strategies. | ||
RenderStrategyInterface:: |
constant | Strategy used to escape HTML input prior to parsing markdown. | ||
RenderStrategyInterface:: |
constant | Strategy used to filter the output of parsed markdown. | ||
RenderStrategyInterface:: |
public | function | Retrieves the custom (user provided) allowed HTML. | 2 |
RenderStrategyInterface:: |
public | function | Retrieves the allowed HTML plugins relevant to the object. | 2 |
RenderStrategyInterface:: |
public | function | Retrieves the custom (user provided) allowed HTML. | 2 |
RenderStrategyInterface:: |
public | function | Retrieves the render strategy to use. | 2 |
RenderStrategyInterface:: |
constant | The URL for explaining Markdown and XSS; render strategies. | ||
RenderStrategyInterface:: |
constant | No render strategy. | ||
RenderStrategyInterface:: |
constant | Strategy used to remove HTML input prior to parsing markdown. |