You are here

DsField.php in Display Suite 8.4

Same filename and directory in other branches
  1. 8.2 src/Annotation/DsField.php
  2. 8.3 src/Annotation/DsField.php

File

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

namespace Drupal\ds\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a DsField annotation object.
 *
 * @Annotation
 */
class DsField extends Plugin {

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

  /**
   * The human-readable name of the DS plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $title;

  /**
   * The entity type this plugin should work on.
   *
   * @var string|array
   */
  public $entity_type;

  /**
   * An array of limits for showing this field.
   *
   * In the format: "bundle|view_mode".
   *
   * @var array
   */
  public $ui_limit;

}

Classes

Namesort descending Description
DsField Defines a DsField annotation object.