public static function SchemaMetatagManagerInterface::encodeJsonld in Schema.org Metatag 8
Same name and namespace in other branches
- 8.2 src/SchemaMetatagManagerInterface.php \Drupal\schema_metatag\SchemaMetatagManagerInterface::encodeJsonld()
Convert a metatags-style data array to JSON LD.
Parameters
array $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 32
Class
- SchemaMetatagManagerInterface
- Interface SchemaMetatagManagerInterface.
Namespace
Drupal\schema_metatagCode
public static function encodeJsonld(array $items);