class XBBCodeTag in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Annotation/XBBCodeTag.php \Drupal\xbbcode\Annotation\XBBCodeTag
Defines a BBCode annotation object.
Plugin Namespace: Plugin\XBBCode.
For a working example, see \Drupal\xbbcode\Plugin\XBBCode\EntityTagPlugin.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\xbbcode\Annotation\XBBCodeTag
Expanded class hierarchy of XBBCodeTag
See also
1 file declares its use of XBBCodeTag
7 classes are annotated with XBBCodeTag
- CodeTagPlugin in standard/
src/ Plugin/ XBBCode/ CodeTagPlugin.php - Prints raw code.
- EntityTagPlugin in src/
Plugin/ XBBCode/ EntityTagPlugin.php - A tag plugin based on a custom tag entity.
- ImageTagPlugin in standard/
src/ Plugin/ XBBCode/ ImageTagPlugin.php - Inserts an image.
- ListTagPlugin in standard/
src/ Plugin/ XBBCode/ ListTagPlugin.php - Renders a list.
- NullTagPlugin in src/
Plugin/ XBBCode/ NullTagPlugin.php - Provides a fallback placeholder plugin.
File
- src/
Annotation/ XBBCodeTag.php, line 18
Namespace
Drupal\xbbcode\AnnotationView source
class XBBCodeTag extends Plugin {
/**
* The human-readable name of the tag.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
protected $label;
/**
* Whether or not the plugin is enabled by default.
*
* @var bool
*/
protected $status = FALSE;
/**
* The suggested code-name of the tag.
*
* This will be the default name for using the tag in BBCode. It must not
* contain any whitespace characters.
*
* @var string
*/
protected $name;
/**
* Additional administrative information about the filter's behavior.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
protected $description;
/**
* A sample tag for the filter tips.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
protected $sample;
/**
* The default settings for the tag.
*
* @var array
*/
protected $settings = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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:: |
|
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 |
XBBCodeTag:: |
protected | property | Additional administrative information about the filter's behavior. | |
XBBCodeTag:: |
protected | property | The human-readable name of the tag. | |
XBBCodeTag:: |
protected | property | The suggested code-name of the tag. | |
XBBCodeTag:: |
protected | property | A sample tag for the filter tips. | |
XBBCodeTag:: |
protected | property | The default settings for the tag. | |
XBBCodeTag:: |
protected | property | Whether or not the plugin is enabled by default. |