You are here

public function ShareMessageInterface::buildOGTags in Share Message 8

Returns Open Graph meta tags for <head>.

Parameters

array $context: The context for the token replacements.

Return value

array An array containing the Open Graph meta tags:

  • title
  • image: If at least one image Url is given.
  • video, video:width, video:height, video:type: If at least one video Url is given.
  • url
  • description
  • type
1 method overrides ShareMessageInterface::buildOGTags()
ShareMessage::buildOGTags in src/Entity/ShareMessage.php
Returns Open Graph meta tags for <head>.

File

src/ShareMessageInterface.php, line 126

Class

ShareMessageInterface
Define interface for ShareMessage entity.

Namespace

Drupal\sharemessage

Code

public function buildOGTags($context);