class FormatterExtras in Custom Formatters 8.3
Defines a formatter extras annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\custom_formatters\Annotation\FormatterExtras
Expanded class hierarchy of FormatterExtras
1 class is annotated with FormatterExtras
- Contextual in src/
Plugin/ CustomFormatters/ FormatterExtras/ Contextual.php - Contextual links optional integration plugin.
File
- src/
Annotation/ FormatterExtras.php, line 12
Namespace
Drupal\custom_formatters\AnnotationView source
class FormatterExtras extends Plugin {
/**
* The formatter extra plugin ID.
*
* @var string
*/
public $id;
/**
* The formatter extra plugin label.
*
* @var string
*/
public $label;
/**
* A description of the formatter extra.
*
* @var string
*/
public $description;
/**
* A boolean flag determining if the extra is optional.
*
* @var bool
*/
public $optional = TRUE;
/**
* A keyed array of dependencies.
*
* @var array
*/
public $dependencies;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterExtras:: |
public | property | A keyed array of dependencies. | |
FormatterExtras:: |
public | property | A description of the formatter extra. | |
FormatterExtras:: |
public | property | The formatter extra plugin ID. | |
FormatterExtras:: |
public | property | The formatter extra plugin label. | |
FormatterExtras:: |
public | property | A boolean flag determining if the extra is optional. | |
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 |