Loading CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx #3253736 by Dave Reid, zebda, DamienMcKenna: favicon meta tag was renamed in Drupal 9.3.0. #3223289 by DamienMcKenna, introfini: Added product:retailer_item_id. #3230393 by introfini, DamienMcKenna: Added product:availability and product:condition. Metatag 8.x-1.16, 2021-03-15 Loading metatag_open_graph_products/config/schema/metatag_open_graph_products.metatag_tag.schema.yml +6 −0 Original line number Diff line number Diff line metatag.metatag_tag.product_availability: type: label label: 'Open Graph Product: Price availability' metatag.metatag_tag.product_condition: type: label label: 'Open Graph Product: Product condition' metatag.metatag_tag.product_price_amount: type: label label: 'Open Graph Product: Price amount' Loading metatag_open_graph_products/src/Plugin/metatag/Tag/ProductAvailability.php 0 → 100644 +26 −0 Original line number Diff line number Diff line <?php namespace Drupal\metatag_open_graph_products\Plugin\metatag\Tag; use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase; /** * Provides a plugin for the 'product:availability' meta tag. * * @MetatagTag( * id = "product_availability", * label = @Translation("Product availability"), * description = @Translation("The availability of the product."), * name = "product:availability", * group = "open_graph_products", * weight = 1, * type = "string", * secure = FALSE, * multiple = FALSE * ) */ class ProductAvailability extends MetaPropertyBase { // Nothing here yet. Just a placeholder class for a plugin. } metatag_open_graph_products/src/Plugin/metatag/Tag/ProductCondition.php 0 → 100644 +26 −0 Original line number Diff line number Diff line <?php namespace Drupal\metatag_open_graph_products\Plugin\metatag\Tag; use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase; /** * Provides a plugin for the 'product:condition' meta tag. * * @MetatagTag( * id = "product_condition", * label = @Translation("Product condition"), * description = @Translation("The condition of the product."), * name = "product:condition", * group = "open_graph_products", * weight = 1, * type = "string", * secure = FALSE, * multiple = FALSE * ) */ class ProductCondition extends MetaPropertyBase { // Nothing here yet. Just a placeholder class for a plugin. } metatag_open_graph_products/tests/src/Functional/MetatagOpenGraphProductsTagsTest.php +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ class MetatagOpenGraphProductsTagsTest extends MetatagTagsTestBase { * {@inheritdoc} */ protected $tags = [ 'product_availability', 'product_condition', 'product_price_amount', 'product_price_currency', 'product_retailer_item_id', Loading Loading
CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx #3253736 by Dave Reid, zebda, DamienMcKenna: favicon meta tag was renamed in Drupal 9.3.0. #3223289 by DamienMcKenna, introfini: Added product:retailer_item_id. #3230393 by introfini, DamienMcKenna: Added product:availability and product:condition. Metatag 8.x-1.16, 2021-03-15 Loading
metatag_open_graph_products/config/schema/metatag_open_graph_products.metatag_tag.schema.yml +6 −0 Original line number Diff line number Diff line metatag.metatag_tag.product_availability: type: label label: 'Open Graph Product: Price availability' metatag.metatag_tag.product_condition: type: label label: 'Open Graph Product: Product condition' metatag.metatag_tag.product_price_amount: type: label label: 'Open Graph Product: Price amount' Loading
metatag_open_graph_products/src/Plugin/metatag/Tag/ProductAvailability.php 0 → 100644 +26 −0 Original line number Diff line number Diff line <?php namespace Drupal\metatag_open_graph_products\Plugin\metatag\Tag; use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase; /** * Provides a plugin for the 'product:availability' meta tag. * * @MetatagTag( * id = "product_availability", * label = @Translation("Product availability"), * description = @Translation("The availability of the product."), * name = "product:availability", * group = "open_graph_products", * weight = 1, * type = "string", * secure = FALSE, * multiple = FALSE * ) */ class ProductAvailability extends MetaPropertyBase { // Nothing here yet. Just a placeholder class for a plugin. }
metatag_open_graph_products/src/Plugin/metatag/Tag/ProductCondition.php 0 → 100644 +26 −0 Original line number Diff line number Diff line <?php namespace Drupal\metatag_open_graph_products\Plugin\metatag\Tag; use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase; /** * Provides a plugin for the 'product:condition' meta tag. * * @MetatagTag( * id = "product_condition", * label = @Translation("Product condition"), * description = @Translation("The condition of the product."), * name = "product:condition", * group = "open_graph_products", * weight = 1, * type = "string", * secure = FALSE, * multiple = FALSE * ) */ class ProductCondition extends MetaPropertyBase { // Nothing here yet. Just a placeholder class for a plugin. }
metatag_open_graph_products/tests/src/Functional/MetatagOpenGraphProductsTagsTest.php +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ class MetatagOpenGraphProductsTagsTest extends MetatagTagsTestBase { * {@inheritdoc} */ protected $tags = [ 'product_availability', 'product_condition', 'product_price_amount', 'product_price_currency', 'product_retailer_item_id', Loading