Retrieves publicly-visible data for the route.
public get_data_for_route ( string $route, array $callbacks, string $context = 'view' ) : array | null | ||
$route | string | Route to get data for. |
$callbacks | array | Callbacks to convert to data. |
$context | string | Optional. Context for the data. Accepts 'view' or 'help'. Default 'view'. |
return | array | null | Data for the route, or null if no publicly-visible data. |