interface ParserInterface in Markdown 8.2
Interface for defining markdown parsers.
@method \Drupal\markdown\Annotation\MarkdownParser getPluginDefinition()
Hierarchy
- interface \Drupal\markdown\Plugin\Markdown\EnabledPluginInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterface; interface \Drupal\markdown\Plugin\Markdown\RenderStrategyInterface; interface \Drupal\markdown\Plugin\Markdown\SettingsInterface
- interface \Drupal\markdown\Plugin\Markdown\ParserInterface
Expanded class hierarchy of ParserInterface
All classes that implement ParserInterface
24 files declare their use of ParserInterface
- AllowedHtmlManager.php in src/
PluginManager/ AllowedHtmlManager.php - EmojiExtension.php in src/
Plugin/ Markdown/ CommonMark/ Extension/ EmojiExtension.php - ExternalLinkExtension.php in src/
Plugin/ Markdown/ CommonMark/ Extension/ ExternalLinkExtension.php - FilterAlign.php in src/
Plugin/ Markdown/ AllowedHtml/ FilterAlign.php - FilterCaption.php in src/
Plugin/ Markdown/ AllowedHtml/ FilterCaption.php
File
- src/
Plugin/ Markdown/ ParserInterface.php, line 13
Namespace
Drupal\markdown\Plugin\MarkdownView source
interface ParserInterface extends EnabledPluginInterface, RefinableCacheableDependencyInterface, RenderStrategyInterface, SettingsInterface {
/**
* Parses markdown into HTML.
*
* @param string $markdown
* The markdown string to parse.
* @param \Drupal\Core\Language\LanguageInterface $language
* Optional. The language of the markdown to be parsed.
*
* @return \Drupal\markdown\Render\ParsedMarkdownInterface
* A safe ParsedMarkdown object.
*
* @see \Drupal\markdown\Render\ParsedMarkdownInterface
*/
public function parse($markdown, LanguageInterface $language = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnnotatedPluginInterface:: |
public | function | Retrieves the configuration overrides for the plugin. | 1 |
AnnotatedPluginInterface:: |
public | function | Retrieves the description of the plugin, if set. | 1 |
AnnotatedPluginInterface:: |
public | function | Retrieves the original plugin identifier. | 1 |
AnnotatedPluginInterface:: |
public | function | Returns the provider (extension name) of the plugin. | 1 |
AnnotatedPluginInterface:: |
public | function | Returns the weight of the plugin (used for sorting). | 1 |
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
ConfigurableInterface:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurableInterface:: |
1 |
ConfigurableInterface:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurableInterface:: |
1 |
ConfigurableInterface:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
1 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
EnabledPluginInterface:: |
public | function | Indicates the default "enabled" state. | |
EnabledPluginInterface:: |
public | function | Indicates whether the plugin is enabled. | |
InstallablePluginInterface:: |
public | function | Builds a display for a library. | 1 |
InstallablePluginInterface:: |
public | function | Builds a display status based on the current state of the plugin. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the config instance for this plugin. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the deprecation message, if any. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the experimental message. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the composer package name of the installable library, if any. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the installed library used by the plugin. | 1 |
InstallablePluginInterface:: |
public | function |
Displays the human-readable label of the plugin. Overrides AnnotatedPluginInterface:: |
|
InstallablePluginInterface:: |
public | function | Retrieves the plugin as a link using its label and URL. | 1 |
InstallablePluginInterface:: |
public | function | Instantiates a new instance of the object defined by the installed library. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the class name of the object defined by the installed library. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the preferred library of the plugin. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the configuration for the plugin, but sorted. | 1 |
InstallablePluginInterface:: |
public | function | Retrieves the URL of the plugin, if set. | 1 |
InstallablePluginInterface:: |
public | function | The current version of the plugin. | 1 |
InstallablePluginInterface:: |
public | function | Indicates whether plugin has multiple installs to check. | 1 |
InstallablePluginInterface:: |
public | function | Indicates whether the plugin is installed. | 1 |
InstallablePluginInterface:: |
public | function | Indicates whether the plugin is using the preferred library. | 1 |
InstallablePluginInterface:: |
public | function | Indicates whether the preferred library is installed. | 1 |
InstallablePluginInterface:: |
public | function | Indicates whether the plugin should be shown in the UI. | 1 |
ParserInterface:: |
public | function | Parses markdown into HTML. | 2 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
RefinableCacheableDependencyInterface:: |
public | function | Adds a dependency on an object: merges its cacheability metadata. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Adds cache contexts. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Adds cache tags. | 1 |
RefinableCacheableDependencyInterface:: |
public | function | Merges the maximum age (in seconds) with the existing maximum age. | 1 |
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. | ||
SettingsInterface:: |
public static | function | Provides the default settings for the plugin. | |
SettingsInterface:: |
public | function | Retrieves the default value for the setting. | |
SettingsInterface:: |
public | function | Retrieves a setting for the plugin. | |
SettingsInterface:: |
public | function | ||
SettingsInterface:: |
public | function | Retrieves the current settings. | 1 |
SettingsInterface:: |
public | function | Flag indicating whether a setting exists. | |
SettingsInterface:: |
public | function | The array key name to use when the settings are nested in another array. |