protected function ViewsFieldTemplate::getReplacements in Calendar 8
Get the replaces array from the plugin definition.
The keys will be converted to work with yml files.
Parameters
mixed $options: Options to get replacements.
Return value
array Returns an array.
Overrides ViewsDuplicateBuilderBase::getReplacements
File
- src/
Plugin/ ViewsTemplateBuilder/ ViewsFieldTemplate.php, line 54
Class
- ViewsFieldTemplate
- Views Template for all calendar fields.
Namespace
Drupal\calendar\Plugin\ViewsTemplateBuilderCode
protected function getReplacements($options = NULL) {
$replacements = parent::getReplacements($options);
if (isset($options['base_path'])) {
$replacements['__BASE_PATH'] = $options['base_path'];
}
return $replacements;
}