You are here

public static function SchemaMetatagManagerInterface::getRenderedJsonld in Schema.org Metatag 8

Same name and namespace in other branches
  1. 8.2 src/SchemaMetatagManagerInterface.php \Drupal\schema_metatag\SchemaMetatagManagerInterface::getRenderedJsonld()

Render JSON LD for a specific entity.

Useful to pass to a decoupled front end, for instance.

Parameters

string $entity: The entity that contains JSONLD.

string $entity_type: The type of entity.

Return value

string The JSONLD markup.

1 method overrides SchemaMetatagManagerInterface::getRenderedJsonld()
SchemaMetatagManager::getRenderedJsonld in src/SchemaMetatagManager.php
Render JSON LD for a specific entity.

File

src/SchemaMetatagManagerInterface.php, line 58

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Namespace

Drupal\schema_metatag

Code

public static function getRenderedJsonld($entity = NULL, $entity_type = NULL);