You are here

class MarkdownAllowedHtml in Markdown 8.2

Markdown Allowed HTML Annotation.

Hierarchy

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.

... See full list

File

src/Annotation/MarkdownAllowedHtml.php, line 10

Namespace

Drupal\markdown\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
AnnotationBase::$class protected property The class used for this annotated class.
AnnotationBase::$id public property The annotated class ID. 1
AnnotationBase::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
AnnotationBase::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
AnnotationBase::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
AnnotationBase::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
AnnotationObject::$description public property The description of the plugin.
AnnotationObject::$label public property A human-readable label.
AnnotationObject::$weight public property The weight of the plugin.
AnnotationObject::$_deprecated protected property Stores deprecated values.
AnnotationObject::$_deprecatedProperties protected property A list of deprecation messages, keyed by the deprecated property name.
AnnotationObject::$_triggeredDeprecations private property A list of triggered deprecations.
AnnotationObject::create public static function Allows the creation of new objects statically, for easier chainability.
AnnotationObject::DEPRECATED_REGEX constant
AnnotationObject::doMerge protected function Merges values with this plugin.
AnnotationObject::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
AnnotationObject::getId public function Gets the unique ID for this annotated class. Overrides AnnotationBase::getId
AnnotationObject::getIterator public function
AnnotationObject::id public function Gets the unique identifier of the plugin. Overrides PluginDefinitionInterface::id
AnnotationObject::merge public function Merges values with this plugin.
AnnotationObject::normalizeValue protected function Normalizes a value to ensure its ready to be merged with the definition.
AnnotationObject::offsetExists public function
AnnotationObject::offsetGet public function
AnnotationObject::offsetSet public function
AnnotationObject::offsetUnset public function
AnnotationObject::triggerDeprecation private function Triggers a deprecation notice for a given property.
AnnotationObject::validateIdentifier protected function Helper method for validating the definition identifier. 2
AnnotationObject::__construct public function AnnotationObject constructor. 1
AnnotationObject::__get public function
AnnotationObject::__isset public function
AnnotationObject::__set public function
AnnotationObject::__sleep public function
AnnotationObject::__unset public function
AnnotationObject::__wakeup public function
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function Aliased as: __sleepTrait 1
DependencySerializationTrait::__wakeup public function Aliased as: __wakeupTrait 2
InstallablePlugin::$libraries public property An array of available installable libraries this plugin supports.
InstallablePlugin::getInstalledId public function Retrieves the installed library or plugin identifier.
InstallablePlugin::getInstalledLibrary public function Retrieves the installed library.
InstallablePlugin::getPreferredLibrary public function Retrieves the preferred library.
InstallablePlugin::getRequirementsByConstraint public function Retrieves requirements of a certain constraint type.
InstallablePlugin::getRequirementsByType public function Retrieves requirements of a certain type.
InstallablePlugin::isInstalled public function Indicates whether plugin is installed.
InstallablePlugin::isPreferredLibraryInstalled public function Indicates whether the preferred library is installed.
InstallablePluginTrait::$deprecated public property Indicates the plugin has been deprecated by providing a message.
InstallablePluginTrait::$experimental public property Indicates the plugin is experimental by providing a message.
InstallablePluginTrait::$installed Deprecated public property Flag indicating whether plugin is installed.
InstallablePluginTrait::$object public property The class name of the primary object that is implemented by the library.
InstallablePluginTrait::$preferred public property Flag indicating whether it is the preferred library.
InstallablePluginTrait::$requirements public property An array of requirements for the plugin.
InstallablePluginTrait::$requirementViolations public property A list of requirement violation messages.
InstallablePluginTrait::$runtimeRequirements public property An array of runtime requirements for the plugin.
InstallablePluginTrait::$ui public property Flag indicating whether this plugin is to be visible in UI areas.
InstallablePluginTrait::$url public property A URL for the plugin, typically for installation instructions.
InstallablePluginTrait::$version public property The installed version.
InstallablePluginTrait::$versionConstraint Deprecated public property The constraint the version must satisfy to be considered "installable".
InstallablePluginTrait::getLink public function Retrieves the plugin as a link using its label and URL.
InstallablePluginTrait::getUrl public function Retrieves the definition's URL property as an object. 1
InstallablePluginTrait::getVersionRequirements public function Retrieves requirements that contain "Version" constraints.
InstallablePluginTrait::validate public function Validates the plugin requirements.
MarkdownAllowedHtml::$provider public property The provider of the annotated class. Overrides AnnotationBase::$provider
MarkdownAllowedHtml::$requiresFilter Deprecated public property A specific filter that is required for this plugin to work.
MarkdownAllowedHtml::$type public property The type of object this allowed HTML is associated with.
MarkdownAllowedHtml::protectedProperties protected function Indicates properties that should never be overridden after instantiation. Overrides AnnotationObject::protectedProperties