protected function ViewsDuplicateBuilderBase::alterViewTemplateAfterCreation in Views Templates 8
After View Template has been created the Builder should alter it some how.
Parameters
array $view_template: The array of view template.
array $options: Options for altering.
2 calls to ViewsDuplicateBuilderBase::alterViewTemplateAfterCreation()
- ViewDuplicatorTest::alterViewTemplateAfterCreation in tests/
modules/ views_templates_builder_test/ src/ Plugin/ ViewsTemplateBuilder/ ViewDuplicatorTest.php - After View Template has been created the Builder should alter it some how.
- ViewsDuplicateBuilderBase::loadTemplate in src/
Plugin/ ViewsDuplicateBuilderBase.php - Load template from service.
1 method overrides ViewsDuplicateBuilderBase::alterViewTemplateAfterCreation()
- ViewDuplicatorTest::alterViewTemplateAfterCreation in tests/
modules/ views_templates_builder_test/ src/ Plugin/ ViewsTemplateBuilder/ ViewDuplicatorTest.php - After View Template has been created the Builder should alter it some how.
File
- src/
Plugin/ ViewsDuplicateBuilderBase.php, line 147
Class
- ViewsDuplicateBuilderBase
- ViewsDuplicateBuilderBase Class.
Namespace
Drupal\views_templates\PluginCode
protected function alterViewTemplateAfterCreation(array &$view_template, array $options = NULL) {
if ($replacements = $this
->getReplacements($options)) {
$this
->replaceTemplateKeyAndValues($view_template, $replacements, $options);
}
}