Commit 30fc16bd authored by Ilcho Vuchkov's avatar Ilcho Vuchkov Committed by Ilcho Vuchkov
Browse files

Issue #3264794 by vuil: Add tag "inLanguage" into the Schema.org PublicationIssue

parent 5dac8ed2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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'
+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 {

}