Loading schema_recipe/config/schema/schema_recipe.metatag_tag.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -52,3 +52,6 @@ metatag.metatag_tag.schema_recipe_nutrition: metatag.metatag_tag.schema_recipe_recipe_cuisine: type: text label: 'recipeCuisine' metatag.metatag_tag.schema_recipe_keywords: type: text label: 'keywords' schema_recipe/src/Plugin/metatag/Tag/SchemaRecipeKeywords.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?php namespace Drupal\schema_recipe\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'keywords' 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_recipe_keywords", * label = @Translation("keywords"), * description = @Translation("RECOMMENDED BY GOOGLE. Keywords of the recipe (comma separated). For example, 'winter apple pie, nutmeg crust'"), * name = "keywords", * group = "schema_recipe", * weight = 2, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "text", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaRecipeKeywords extends SchemaNameBase { } Loading
schema_recipe/config/schema/schema_recipe.metatag_tag.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -52,3 +52,6 @@ metatag.metatag_tag.schema_recipe_nutrition: metatag.metatag_tag.schema_recipe_recipe_cuisine: type: text label: 'recipeCuisine' metatag.metatag_tag.schema_recipe_keywords: type: text label: 'keywords'
schema_recipe/src/Plugin/metatag/Tag/SchemaRecipeKeywords.php 0 → 100644 +31 −0 Original line number Diff line number Diff line <?php namespace Drupal\schema_recipe\Plugin\metatag\Tag; use Drupal\schema_metatag\Plugin\metatag\Tag\SchemaNameBase; /** * Provides a plugin for the 'keywords' 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_recipe_keywords", * label = @Translation("keywords"), * description = @Translation("RECOMMENDED BY GOOGLE. Keywords of the recipe (comma separated). For example, 'winter apple pie, nutmeg crust'"), * name = "keywords", * group = "schema_recipe", * weight = 2, * type = "string", * secure = FALSE, * multiple = FALSE, * property_type = "text", * tree_parent = {}, * tree_depth = -1, * ) */ class SchemaRecipeKeywords extends SchemaNameBase { }