public function DataExport::getAvailableGlobalTokens in Views data export 8
Returns an array of available token replacements.
Parameters
bool $prepared: Whether to return the raw token info for each token or an array of prepared tokens for each type. E.g. "[view:name]".
array $types: An array of additional token types to return, defaults to 'site' and 'view'.
Return value
array An array of available token replacement info or tokens, grouped by type.
Overrides PluginBase::getAvailableGlobalTokens
File
- src/
Plugin/ views/ display/ DataExport.php, line 631
Class
- DataExport
- Provides a data export display plugin.
Namespace
Drupal\views_data_export\Plugin\views\displayCode
public function getAvailableGlobalTokens($prepared = FALSE, array $types = []) {
$types += [
'date',
];
return parent::getAvailableGlobalTokens($prepared, $types);
}