function ViewsViewsExecutionHooks::viewsFormSubstitutions
Implements hook_views_form_substitutions().
File
-
core/
modules/ views/ src/ Hook/ ViewsViewsExecutionHooks.php, line 35
Class
- ViewsViewsExecutionHooks
- Hook implementations for views.
Namespace
Drupal\views\HookCode
public function viewsFormSubstitutions() {
$select_all = [
'#type' => 'checkbox',
'#default_value' => FALSE,
'#attributes' => [
'class' => [
'action-table-select-all',
],
],
];
return [
'<!--action-bulk-form-select-all-->' => \Drupal::service('renderer')->render($select_all),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.