You are here

MetatagTag.php in Metatag 8

File

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

namespace Drupal\metatag\Annotation;

use Drupal\Component\Annotation\Plugin;

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

  /**
   * The meta tag plugin's internal ID, in machine name format.
   *
   * @var string
   */
  public $id;

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

  /**
   * A longer explanation of what the field is for.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $description;

  /**
   * Proper name of the actual meta tag itself.
   *
   * @var string
   */
  public $name;

  /**
   * The group this meta tag fits in, corresponds to a MetatagGroup plugin.
   *
   * @var string
   */
  public $group;

  /**
   * Weight of the tag.
   *
   * @var int
   */
  public $weight;

  /**
   * Type of the meta tag.
   *
   * Should be either 'date', 'image', 'integer', 'label', 'string' or 'uri'.
   *
   * @var string
   */
  public $type;

  /**
   * True if URL must use HTTPS.
   *
   * @var bool
   */
  protected $secure;

  /**
   * True if more than one is allowed.
   *
   * @var bool
   */
  public $multiple;

  /**
   * True if the tag should use a text area.
   *
   * @var bool
   */
  public $long;

  /**
   * True if the URL value(s) must be absolute.
   *
   * @var bool
   */
  protected $absoluteUrl;

}

Classes

Namesort descending Description
MetatagTag Defines a MetatagTag annotation object.