Loading config/schema/schema_publication_issue.metatag_tag.schema.yml +4 −1 Original line number Diff line number Diff line Loading @@ -26,9 +26,12 @@ metatag.metatag_tag.schema_publication_issue_encoding_format: metatag.metatag_tag.schema_publication_issue_headline: type: label label: 'headline' metatag.metatag_tag.schema_article_image: metatag.metatag_tag.schema_publication_issue_image: type: text label: 'image' metatag.metatag_tag.schema_publication_issue_in_language: type: text label: 'language' metatag.metatag_tag.schema_publication_issue_issue_number: type: label label: 'issueNumber' Loading src/Plugin/metatag/Tag/SchemaPublicationIssueInLanguage.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?php namespace Drupal\schema_publication_issue\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'schema_publication_issue_in_language' meta tag. * * - 'id' should be a globally unique id. * - 'name' should match the Schema.org element name. * - 'group' should match the id of the group that defines the Schema.org type. * * @MetatagTag( * id = "schema_publication_issue_in_language", * label = @Translation("inLanguage"), * description = @Translation("The language of the content"), * name = "inLanguage", * group = "schema_publication_issue", * weight = 11, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "text", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaPublicationIssueInLanguage extends SchemaNameBase { } Loading
config/schema/schema_publication_issue.metatag_tag.schema.yml +4 −1 Original line number Diff line number Diff line Loading @@ -26,9 +26,12 @@ metatag.metatag_tag.schema_publication_issue_encoding_format: metatag.metatag_tag.schema_publication_issue_headline: type: label label: 'headline' metatag.metatag_tag.schema_article_image: metatag.metatag_tag.schema_publication_issue_image: type: text label: 'image' metatag.metatag_tag.schema_publication_issue_in_language: type: text label: 'language' metatag.metatag_tag.schema_publication_issue_issue_number: type: label label: 'issueNumber' Loading
src/Plugin/metatag/Tag/SchemaPublicationIssueInLanguage.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?php namespace Drupal\schema_publication_issue\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'schema_publication_issue_in_language' meta tag. * * - 'id' should be a globally unique id. * - 'name' should match the Schema.org element name. * - 'group' should match the id of the group that defines the Schema.org type. * * @MetatagTag( * id = "schema_publication_issue_in_language", * label = @Translation("inLanguage"), * description = @Translation("The language of the content"), * name = "inLanguage", * group = "schema_publication_issue", * weight = 11, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "text", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaPublicationIssueInLanguage extends SchemaNameBase { }