class MetatagTag in Metatag 8
Defines a MetatagTag annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\metatag\Annotation\MetatagTag
Expanded class hierarchy of MetatagTag
290 classes are annotated with MetatagTag
- AbstractTag in metatag_dc_advanced/
src/ Plugin/ metatag/ Tag/ AbstractTag.php - The Dublin Core "Abstract" meta tag.
- AbstractTag in src/
Plugin/ metatag/ Tag/ AbstractTag.php - The basic "Abstract" meta tag.
- AccessRights in metatag_dc_advanced/
src/ Plugin/ metatag/ Tag/ AccessRights.php - The Dublin Core "accessRights" meta tag.
- AccrualMethod in metatag_dc_advanced/
src/ Plugin/ metatag/ Tag/ AccrualMethod.php - The Dublin Core "accrualMethod" meta tag.
- AccrualPeriodicity in metatag_dc_advanced/
src/ Plugin/ metatag/ Tag/ AccrualPeriodicity.php - The Dublin Core "accrualPeriodicity" meta tag.
File
- src/
Annotation/ MetatagTag.php, line 12
Namespace
Drupal\metatag\AnnotationView source
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;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MetatagTag:: |
protected | property | True if the URL value(s) must be absolute. | |
MetatagTag:: |
public | property | A longer explanation of what the field is for. | |
MetatagTag:: |
public | property | The group this meta tag fits in, corresponds to a MetatagGroup plugin. | |
MetatagTag:: |
public | property | The meta tag plugin's internal ID, in machine name format. | |
MetatagTag:: |
public | property | The display label/name of the meta tag plugin. | |
MetatagTag:: |
public | property | True if the tag should use a text area. | |
MetatagTag:: |
public | property | True if more than one is allowed. | |
MetatagTag:: |
public | property | Proper name of the actual meta tag itself. | |
MetatagTag:: |
protected | property | True if URL must use HTTPS. | |
MetatagTag:: |
public | property | Type of the meta tag. | |
MetatagTag:: |
public | property | Weight of the tag. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |