You are here

FieldFormatterCondition.php in Field Formatter Condition 8

File

src/Annotation/FieldFormatterCondition.php
View source
<?php

namespace Drupal\fico\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a field formatter condition item annotation object.
 *
 * @see \Drupal\fico\Plugin\FieldFormatterConditionManager
 * @see plugin_api
 *
 * @Annotation
 */
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;

}

Classes

Namesort descending Description
FieldFormatterCondition Defines a field formatter condition item annotation object.