Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
schema_publication_issue
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
schema_publication_issue
Commits
30fc16bd
Commit
30fc16bd
authored
3 years ago
by
Ilcho Vuchkov
Committed by
Ilcho Vuchkov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3264794
by vuil: Add tag "inLanguage" into the Schema.org PublicationIssue
parent
5dac8ed2
Branches
Branches containing commit
Tags
1.0.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/schema/schema_publication_issue.metatag_tag.schema.yml
+4
-1
4 additions, 1 deletion
...ig/schema/schema_publication_issue.metatag_tag.schema.yml
src/Plugin/metatag/Tag/SchemaPublicationIssueInLanguage.php
+31
-0
31 additions, 0 deletions
src/Plugin/metatag/Tag/SchemaPublicationIssueInLanguage.php
with
35 additions
and
1 deletion
config/schema/schema_publication_issue.metatag_tag.schema.yml
+
4
−
1
View file @
30fc16bd
...
...
@@ -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_
articl
e_image
:
metatag.metatag_tag.schema_
publication_issu
e_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'
...
...
This diff is collapsed.
Click to expand it.
src/Plugin/metatag/Tag/SchemaPublicationIssueInLanguage.php
0 → 100644
+
31
−
0
View file @
30fc16bd
<?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
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment