abstract class SchemaGroupBase in Schema.org Metatag 8
Same name and namespace in other branches
- 8.2 src/Plugin/metatag/Group/SchemaGroupBase.php \Drupal\schema_metatag\Plugin\metatag\Group\SchemaGroupBase
Schema.org groups should extend this class.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\metatag\Plugin\metatag\Group\GroupBase
- class \Drupal\schema_metatag\Plugin\metatag\Group\SchemaGroupBase
- class \Drupal\metatag\Plugin\metatag\Group\GroupBase
Expanded class hierarchy of SchemaGroupBase
22 files declare their use of SchemaGroupBase
- SchemaArticle.php in schema_article/
src/ Plugin/ metatag/ Group/ SchemaArticle.php - SchemaBook.php in schema_book/
src/ Plugin/ metatag/ Group/ SchemaBook.php - SchemaCourse.php in schema_course/
src/ Plugin/ metatag/ Group/ SchemaCourse.php - SchemaEvent.php in schema_event/
src/ Plugin/ metatag/ Group/ SchemaEvent.php - SchemaHowTo.php in schema_how_to/
src/ Plugin/ metatag/ Group/ SchemaHowTo.php
File
- src/
Plugin/ metatag/ Group/ SchemaGroupBase.php, line 10
Namespace
Drupal\schema_metatag\Plugin\metatag\GroupView source
abstract class SchemaGroupBase extends GroupBase {
/**
* Whether this is structured data.
*
* @var bool
*/
protected $schemaMetatag;
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->schemaMetatag = $plugin_definition['schema_metatag'];
}
/**
* Returns whether this is structured data.
*/
public function schemaMetatag() {
return $this->schemaMetatag;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GroupBase:: |
protected | property | Description of the group. | |
GroupBase:: |
protected | property | Machine name of the meta tag group plugin. | |
GroupBase:: |
protected | property | The name of the group. | |
GroupBase:: |
public | function | This group object's description. | |
GroupBase:: |
public | function | Get this group's internal ID. | |
GroupBase:: |
public | function | Whether or not this group is being used. | |
GroupBase:: |
public | function | Get this group's human-friendly name. | |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
SchemaGroupBase:: |
protected | property | Whether this is structured data. | |
SchemaGroupBase:: |
public | function | Returns whether this is structured data. | |
SchemaGroupBase:: |
public | function |
Constructs a \Drupal\Component\Plugin\PluginBase object. Overrides GroupBase:: |