Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / metatag / metatag_open_graph / src / Plugin / metatag / Tag / OgImage.php
index efb448bfd15087e420b9576d1999d9fe170aca63..4402ae5da97cf673b0bcb8f74d315cb78125e75c 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Drupal\metatag_open_graph\Plugin\metatag\Tag;
 
-use \Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
+use Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
 
 /**
  * Provides a plugin for the 'og:image' meta tag.
@@ -10,13 +10,14 @@ use \Drupal\metatag\Plugin\metatag\Tag\MetaPropertyBase;
  * @MetatagTag(
  *   id = "og_image",
  *   label = @Translation("Image"),
- *   description = @Translation("The URL of an image which should represent the content. For best results use an image that is at least 1200 x 630 pixels in size, but at least 600 x 316 pixels is a recommended minimum. Supports PNG, JPEG and GIF formats. Should not be used if og:image:url is used."),
+ *   description = @Translation("The URL of an image which should represent the content. The image must be at least 200 x 200 pixels in size; 600 x 316 pixels is a recommended minimum size, and for best results use an image least 1200 x 630 pixels in size. Supports PNG, JPEG and GIF formats. Should not be used if og:image:url is used. Note: if multiple images are added many services (e.g. Facebook) will default to the largest image, not specifically the first one."),
  *   name = "og:image",
  *   group = "open_graph",
  *   weight = 9,
  *   type = "image",
  *   secure = FALSE,
- *   multiple = TRUE
+ *   multiple = TRUE,
+ *   absolute_url = TRUE
  * )
  */
 class OgImage extends MetaPropertyBase {