You are here

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

Expanded class hierarchy of EmptyField

See also

\Drupal\empty_fields\EmptyFieldPluginBase

\Drupal\empty_fields\EmptyFieldPluginInterface

\Drupal\empty_fields\EmptyFieldsPluginManager

Plugin API

1 file declares its use of EmptyField
EmptyFieldsPluginManager.php in src/EmptyFieldsPluginManager.php
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\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
EmptyField::$id public property The plugin ID.
EmptyField::$label public property The human-readable name of the plugin.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2