You are here

class MarkdownExtension in Markdown 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Annotation/MarkdownExtension.php \Drupal\markdown\Annotation\MarkdownExtension

Class MarkdownExtension.

Plugin annotation


@Attributes({
  @Attribute("id", type = "string", required = true),
  @Attribute("parsers", type = "string[]"),
})

Hierarchy

Expanded class hierarchy of MarkdownExtension

2 files declare their use of MarkdownExtension
BaseExtension.php in src/Plugin/Markdown/Extension/BaseExtension.php
MarkdownExtensionManager.php in src/MarkdownExtensionManager.php
7 classes are annotated with MarkdownExtension
AtAutolinker in src/Plugin/Markdown/Extension/AtAutolinker.php
Plugin annotation @MarkdownExtension( id = "at_autolinker", label = @Translation("@ Autolinker"), installed = TRUE, description = @Translation("Automatically link commonly used references that come after an at character (@) without having to…
AttributesExtension in src/Plugin/Markdown/Extension/AttributesExtension.php
Plugin annotation @MarkdownExtension( id = "webuni/commonmark-attributes-extension", installed = "\Webuni\CommonMark\AttributesExtension\AttributesExtension", label = @Translation("Attributes"), description = @Translation("Adds a syntax to…
BaseExtension in src/Plugin/Markdown/Extension/BaseExtension.php
Base class for markdown extensions.
HashAutolinker in src/Plugin/Markdown/Extension/HashAutolinker.php
Plugin annotation @MarkdownExtension( id = "hash_autolinker", label = @Translation("# Autolinker"), installed = TRUE, description = @Translation("Automatically link commonly used references that come after a hash character (#) without having…
LinkRenderer in src/Plugin/Markdown/Extension/LinkRenderer.php
Plugin annotation @MarkdownExtension( id = "enhanced_links", label = @Translation("Enhanced Links"), installed = TRUE, description = @Translation("Extends CommonMark to provide additional enhancements when rendering links."), parsers =…

... See full list

File

src/Annotation/MarkdownExtension.php, line 15

Namespace

Drupal\markdown\Annotation
View source
class MarkdownExtension extends BaseMarkdownAnnotation {

  /**
   * An identifier or array of parser identifiers this extension belongs to.
   *
   * @var string|string[]
   */
  protected $parsers;

}

Members

Namesort descending Modifiers Type Description Overrides
BaseMarkdownAnnotation::$description protected property The description of the extension.
BaseMarkdownAnnotation::$id protected property The parser identifier.
BaseMarkdownAnnotation::$installed protected property Flag indicating whether plugin is installed.
BaseMarkdownAnnotation::$label protected property The human-readable label.
BaseMarkdownAnnotation::$url protected property The parser URL.
BaseMarkdownAnnotation::$version protected property The installed version.
BaseMarkdownAnnotation::$weight protected property The weight of the plugin.
MarkdownExtension::$parsers protected property An identifier or array of parser identifiers this extension belongs to.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider 1
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2