class MarkdownExtension in Markdown 3.0.x
Same name and namespace in other branches
- 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
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\markdown\Annotation\BaseMarkdownAnnotation
- class \Drupal\markdown\Annotation\MarkdownExtension
- class \Drupal\markdown\Annotation\BaseMarkdownAnnotation
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 =…
File
- src/
Annotation/ MarkdownExtension.php, line 15
Namespace
Drupal\markdown\AnnotationView source
class MarkdownExtension extends BaseMarkdownAnnotation {
/**
* An identifier or array of parser identifiers this extension belongs to.
*
* @var string|string[]
*/
protected $parsers;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BaseMarkdownAnnotation:: |
protected | property | The description of the extension. | |
BaseMarkdownAnnotation:: |
protected | property | The parser identifier. | |
BaseMarkdownAnnotation:: |
protected | property | Flag indicating whether plugin is installed. | |
BaseMarkdownAnnotation:: |
protected | property | The human-readable label. | |
BaseMarkdownAnnotation:: |
protected | property | The parser URL. | |
BaseMarkdownAnnotation:: |
protected | property | The installed version. | |
BaseMarkdownAnnotation:: |
protected | property | The weight of the plugin. | |
MarkdownExtension:: |
protected | property | An identifier or array of parser identifiers this extension belongs to. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
1 |
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |