Loading config/schema/schema_publication_issue.metatag_tag.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ metatag.metatag_tag.schema_publication_issue_associated_media: metatag.metatag_tag.schema_publication_issue_author: type: text label: 'author' metatag.metatag_tag.schema_publication_issue_date_created: type: text label: 'dateCreated' metatag.metatag_tag.schema_publication_issue_date_modified: type: text label: 'dateModified' Loading src/Plugin/metatag/Tag/SchemaPublicationIssueDateCreated.php 0 → 100644 +33 −0 Original line number Diff line number Diff line <?php declare(strict_types = 1); namespace Drupal\schema_publication_issue\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'dateCreated' 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_date_created", * label = @Translation("dateCreated"), * description = @Translation("RECOMMENDED BY GOOGLE. Date the publication issue was created."), * name = "dateCreated", * group = "schema_publication_issue", * weight = 4, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "date", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaPublicationIssueDateCreated extends SchemaNameBase { } Loading
config/schema/schema_publication_issue.metatag_tag.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,9 @@ metatag.metatag_tag.schema_publication_issue_associated_media: metatag.metatag_tag.schema_publication_issue_author: type: text label: 'author' metatag.metatag_tag.schema_publication_issue_date_created: type: text label: 'dateCreated' metatag.metatag_tag.schema_publication_issue_date_modified: type: text label: 'dateModified' Loading
src/Plugin/metatag/Tag/SchemaPublicationIssueDateCreated.php 0 → 100644 +33 −0 Original line number Diff line number Diff line <?php declare(strict_types = 1); namespace Drupal\schema_publication_issue\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'dateCreated' 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_date_created", * label = @Translation("dateCreated"), * description = @Translation("RECOMMENDED BY GOOGLE. Date the publication issue was created."), * name = "dateCreated", * group = "schema_publication_issue", * weight = 4, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "date", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaPublicationIssueDateCreated extends SchemaNameBase { }