class EmptyField in Empty fields 8
Defines a empty field annotation object.
Empty field plugins provides render replacement for fields without value.
Plugin Namespace: Plugin\EmptyFields
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\empty_fields\Annotation\EmptyField
Expanded class hierarchy of EmptyField
See also
\Drupal\empty_fields\EmptyFieldPluginBase
\Drupal\empty_fields\EmptyFieldPluginInterface
\Drupal\empty_fields\EmptyFieldsPluginManager
1 file declares its use of EmptyField
3 classes are annotated with EmptyField
- Broken in src/
Plugin/ EmptyFields/ Broken.php - Defines a fallback plugin for missing empty field plugins.
- EmptyFieldNbsp in src/
Plugin/ EmptyFields/ EmptyFieldNbsp.php - Defines non-breaking space field.
- EmptyFieldText in src/
Plugin/ EmptyFields/ EmptyFieldText.php - Defines EmptyFieldText.
File
- src/
Annotation/ EmptyField.php, line 21
Namespace
Drupal\empty_fields\AnnotationView source
class EmptyField extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmptyField:: |
public | property | The plugin ID. | |
EmptyField:: |
public | property | The human-readable name of the plugin. | |
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 |