class FormatterType in Custom Formatters 8.3
Defines a formatter type annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\custom_formatters\Annotation\FormatterType
Expanded class hierarchy of FormatterType
4 classes are annotated with FormatterType
- FormatterPreset in src/
Plugin/ CustomFormatters/ FormatterType/ FormatterPreset.php - Plugin implementation of the Formatter Preset Formatter type.
- HTMLToken in src/
Plugin/ CustomFormatters/ FormatterType/ HTMLToken.php - Plugin implementation of the HTML + Token Formatter type.
- PHP in src/
Plugin/ CustomFormatters/ FormatterType/ PHP.php - Plugin implementation of the PHP Formatter type.
- Twig in src/
Plugin/ CustomFormatters/ FormatterType/ Twig.php - Plugin implementation of the Twig type.
File
- src/
Annotation/ FormatterType.php, line 12
Namespace
Drupal\custom_formatters\AnnotationView source
class FormatterType extends Plugin {
/**
* The formatter type plugin ID.
*
* @var string
*/
public $id;
/**
* The formatter type plugin label.
*
* @var string
*/
public $label;
/**
* A description of the formatter type.
*
* @var string
*/
public $description;
/**
* Whether the formatter type plugin supports multiple fields.
*
* @var bool
*/
public $multipleFields = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FormatterType:: |
public | property | A description of the formatter type. | |
FormatterType:: |
public | property | The formatter type plugin ID. | |
FormatterType:: |
public | property | The formatter type plugin label. | |
FormatterType:: |
public | property | Whether the formatter type plugin supports multiple fields. | |
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 |