You are here

ExtraFieldForm.php in Extra Field 8.2

File

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

namespace Drupal\extra_field\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a ExtraFieldForm item annotation object.
 *
 * @see \Drupal\extra_field\Plugin\ExtraFieldFormManager
 *
 * @Annotation
 */
class ExtraFieldForm extends Plugin {

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

  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * The description of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description = '';

  /**
   * The entity + bundle combination(s) the plugin supports.
   *
   * Format: [entity].[bundle] for specific entity-bundle combinations or
   * [entity].* for all bundles of the entity.
   *
   * @var string[]
   */
  public $bundles = [];

  /**
   * The default weight of the field.
   *
   * @var int
   */
  public $weight = 0;

  /**
   * Whether the field is visible by default.
   *
   * @var bool
   */
  public $visible = FALSE;

}

Classes

Namesort descending Description
ExtraFieldForm Defines a ExtraFieldForm item annotation object.