You are here

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

Convert a metatags-style data array to JSON LD.

Parameters

$items: Array of Schema metatag tags, ready to be turned into JSON LD.

Return value

string Json-encoded representation of the structured data.

1 method overrides SchemaMetatagManagerInterface::encodeJsonld()
SchemaMetatagManager::encodeJsonld in src/SchemaMetatagManager.php
Convert a metatags-style data array to JSON LD.

File

src/SchemaMetatagManagerInterface.php, line 30

Class

SchemaMetatagManagerInterface
Interface SchemaMetatagManagerInterface.

Code

public static function encodeJsonld($items);