class MarkdownAllowedHtml in Markdown 8.2
Markdown Allowed HTML Annotation.
Hierarchy
- class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterface
- class \Drupal\markdown\Annotation\AnnotationObject implements \Drupal\markdown\Annotation\ArrayAccess, \Drupal\markdown\Annotation\IteratorAggregate, PluginDefinitionInterface uses DependencySerializationTrait
- class \Drupal\markdown\Annotation\InstallablePlugin uses InstallablePluginTrait
- class \Drupal\markdown\Annotation\MarkdownAllowedHtml
- class \Drupal\markdown\Annotation\InstallablePlugin uses InstallablePluginTrait
- class \Drupal\markdown\Annotation\AnnotationObject implements \Drupal\markdown\Annotation\ArrayAccess, \Drupal\markdown\Annotation\IteratorAggregate, PluginDefinitionInterface uses DependencySerializationTrait
Expanded class hierarchy of MarkdownAllowedHtml
2 files declare their use of MarkdownAllowedHtml
- AllowedHtmlManager.php in src/
PluginManager/ AllowedHtmlManager.php - MissingParser.php in src/
Plugin/ Markdown/ MissingParser.php
16 classes are annotated with MarkdownAllowedHtml
- Cmark in src/
Plugin/ Markdown/ Pecl/ Cmark.php - Plugin annotation @MarkdownAllowedHtml( id = "commonmark-pecl", ) @MarkdownParser( id = "commonmark-pecl", label = @Translation("CommonMark PECL"), description = @Translation("CommonMark PECL extension using libcmark."), weight = 10, …
- CommonMark in src/
Plugin/ Markdown/ CommonMark/ CommonMark.php - Support for CommonMark by The League of Extraordinary Packages.
- EmojiExtension in src/
Plugin/ Markdown/ CommonMark/ Extension/ EmojiExtension.php - Emoji extension.
- ExternalLinkExtension in src/
Plugin/ Markdown/ CommonMark/ Extension/ ExternalLinkExtension.php - Plugin annotation @MarkdownAllowedHtml( id = "commonmark-external-links", ) @MarkdownExtension( id = "commonmark-external-links", label = @Translation("External Links"), description = @Translation("Automatically detect links to external sites…
- FilterAlign in src/
Plugin/ Markdown/ AllowedHtml/ FilterAlign.php - Filter module support for "filter_align" filter.
File
- src/
Annotation/ MarkdownAllowedHtml.php, line 10
Namespace
Drupal\markdown\AnnotationView source
class MarkdownAllowedHtml extends InstallablePlugin {
/**
* A specific filter that is required for this plugin to work.
*
* @var string
*
* @deprecated in markdown:8.x-2.0 and is removed from markdown:3.0.0.
* Use the "requirements" properties instead.
* @see https://www.drupal.org/project/markdown/issues/3142418
*/
public $requiresFilter;
/**
* The provider of the annotated class.
*
* @var string
*/
public $provider;
/**
* The type of object this allowed HTML is associated with.
*
* Can be one of: extension, filter, parser, module, theme.
*
* @var string
*/
public $type;
/**
* {@inheritdoc}
*/
protected function protectedProperties() {
return array_merge(parent::protectedProperties(), [
'type',
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnnotationBase:: |
protected | property | The class used for this annotated class. | |
AnnotationBase:: |
public | property | The annotated class ID. | 1 |
AnnotationBase:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationObject:: |
public | property | The description of the plugin. | |
AnnotationObject:: |
public | property | A human-readable label. | |
AnnotationObject:: |
public | property | The weight of the plugin. | |
AnnotationObject:: |
protected | property | Stores deprecated values. | |
AnnotationObject:: |
protected | property | A list of deprecation messages, keyed by the deprecated property name. | |
AnnotationObject:: |
private | property | A list of triggered deprecations. | |
AnnotationObject:: |
public static | function | Allows the creation of new objects statically, for easier chainability. | |
AnnotationObject:: |
constant | |||
AnnotationObject:: |
protected | function | Merges values with this plugin. | |
AnnotationObject:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
|
AnnotationObject:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationBase:: |
|
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function |
Gets the unique identifier of the plugin. Overrides PluginDefinitionInterface:: |
|
AnnotationObject:: |
public | function | Merges values with this plugin. | |
AnnotationObject:: |
protected | function | Normalizes a value to ensure its ready to be merged with the definition. | |
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
private | function | Triggers a deprecation notice for a given property. | |
AnnotationObject:: |
protected | function | Helper method for validating the definition identifier. | 2 |
AnnotationObject:: |
public | function | AnnotationObject constructor. | 1 |
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
AnnotationObject:: |
public | function | ||
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | Aliased as: __sleepTrait | 1 |
DependencySerializationTrait:: |
public | function | Aliased as: __wakeupTrait | 2 |
InstallablePlugin:: |
public | property | An array of available installable libraries this plugin supports. | |
InstallablePlugin:: |
public | function | Retrieves the installed library or plugin identifier. | |
InstallablePlugin:: |
public | function | Retrieves the installed library. | |
InstallablePlugin:: |
public | function | Retrieves the preferred library. | |
InstallablePlugin:: |
public | function | Retrieves requirements of a certain constraint type. | |
InstallablePlugin:: |
public | function | Retrieves requirements of a certain type. | |
InstallablePlugin:: |
public | function | Indicates whether plugin is installed. | |
InstallablePlugin:: |
public | function | Indicates whether the preferred library is installed. | |
InstallablePluginTrait:: |
public | property | Indicates the plugin has been deprecated by providing a message. | |
InstallablePluginTrait:: |
public | property | Indicates the plugin is experimental by providing a message. | |
InstallablePluginTrait:: |
public | property | Flag indicating whether plugin is installed. | |
InstallablePluginTrait:: |
public | property | The class name of the primary object that is implemented by the library. | |
InstallablePluginTrait:: |
public | property | Flag indicating whether it is the preferred library. | |
InstallablePluginTrait:: |
public | property | An array of requirements for the plugin. | |
InstallablePluginTrait:: |
public | property | A list of requirement violation messages. | |
InstallablePluginTrait:: |
public | property | An array of runtime requirements for the plugin. | |
InstallablePluginTrait:: |
public | property | Flag indicating whether this plugin is to be visible in UI areas. | |
InstallablePluginTrait:: |
public | property | A URL for the plugin, typically for installation instructions. | |
InstallablePluginTrait:: |
public | property | The installed version. | |
InstallablePluginTrait:: |
public | property | The constraint the version must satisfy to be considered "installable". | |
InstallablePluginTrait:: |
public | function | Retrieves the plugin as a link using its label and URL. | |
InstallablePluginTrait:: |
public | function | Retrieves the definition's URL property as an object. | 1 |
InstallablePluginTrait:: |
public | function | Retrieves requirements that contain "Version" constraints. | |
InstallablePluginTrait:: |
public | function | Validates the plugin requirements. | |
MarkdownAllowedHtml:: |
public | property |
The provider of the annotated class. Overrides AnnotationBase:: |
|
MarkdownAllowedHtml:: |
public | property | A specific filter that is required for this plugin to work. | |
MarkdownAllowedHtml:: |
public | property | The type of object this allowed HTML is associated with. | |
MarkdownAllowedHtml:: |
protected | function |
Indicates properties that should never be overridden after instantiation. Overrides AnnotationObject:: |