Commit aebe9393 authored by Ilcho Vuchkov's avatar Ilcho Vuchkov Committed by Ilcho Vuchkov
Browse files

Issue #3265624 by vuil: Add schema metatag "identifier"

parent 30fc16bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -53,3 +53,6 @@ metatag.metatag_tag.schema_publication_issue_publisher:
metatag.metatag_tag.schema_publication_issue_type:
  type: string
  label: '@type'
metatag.metatag_tag.norden_schema_identifier:
  type: text
  label: 'identifier'
+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_identifier' 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_identifier",
 *   label = @Translation("identifier"),
 *   description = @Translation("The internal identifier of the publication issue (usually node:id)."),
 *   name = "identifier",
 *   group = "schema_publication_issue",
 *   weight = -5,
 *   type = "string",
 *   secure = FALSE,
 *   multiple = FALSE,
 *   property_type = "text",
 *   tree_parent = {},
 *   tree_depth = -1,
 * )
 */
class SchemaPublicationIssueIdentifier extends SchemaNameBase {

}