You are here

class FieldFormatterCondition in Field Formatter Condition 8

Defines a field formatter condition item annotation object.

Hierarchy

Expanded class hierarchy of FieldFormatterCondition

See also

\Drupal\fico\Plugin\FieldFormatterConditionManager

Plugin API

10 classes are annotated with FieldFormatterCondition
HideDateTime in src/Plugin/Field/FieldFormatter/Condition/HideDateTime.php
The plugin for check empty fields.
HideIfAuthor in src/Plugin/Field/FieldFormatter/Condition/HideIfAuthor.php
The plugin for check empty fields.
HideIfBoolCheck in src/Plugin/Field/FieldFormatter/Condition/HideIfBoolCheck.php
The plugin for check empty fields.
HideIfEmpty in src/Plugin/Field/FieldFormatter/Condition/HideIfEmpty.php
The plugin for check empty fields.
HideIfString in src/Plugin/Field/FieldFormatter/Condition/HideIfString.php
The plugin for check empty fields.

... See full list

File

src/Annotation/FieldFormatterCondition.php, line 15

Namespace

Drupal\fico\Annotation
View source
class FieldFormatterCondition extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The field formatter condition label in the select box.
   *
   * @var string
   */
  public $label;

  /**
   * Show this condition on DS fields.
   *
   * @var bool
   */
  public $dsFields;

  /**
   * This field formatter condition is allowed for the following field types.
   *
   * @var array
   */
  public $types;

}

Members

Namesort descending Modifiers Type Description Overrides
FieldFormatterCondition::$dsFields public property Show this condition on DS fields.
FieldFormatterCondition::$id public property The plugin ID.
FieldFormatterCondition::$label public property The field formatter condition label in the select box.
FieldFormatterCondition::$types public property This field formatter condition is allowed for the following field types.
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