You are here

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

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 56

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Code

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