public static function Helper::getPageJson in Structured Data (JSON+LD Rich Snippets) 8
Get page JSON.
Parameters
array $params: An array of parameters.
Return value
mixed Page JSON.
3 calls to Helper::getPageJson()
- Helper::updatePageJson in src/
Core/ Helper.php - Update Page JSON.
- PageJsonForm::getEntity in src/
Form/ PageJsonForm.php - Get entity details from current route.
- structured_data_page_attachments_alter in ./
structured_data.module - Implements hook_page_attachments_alter().
File
- src/
Core/ Helper.php, line 118
Class
- Helper
- Class Helper.
Namespace
Drupal\structured_data\CoreCode
public static function getPageJson(array $params) {
$obj = empty($params['entity_id']) || $params['entity_id'] == '0' ? self::getPageJsonForRoute($params['route_name'], $params['url']) : self::getPageJsonForEntity($params['bundle'], $params['entity_id']);
return $obj;
}