function views_views_form_substitutions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/views.views_execution.inc \views_views_form_substitutions()
Implements hook_views_form_substitutions().
File
- core/
modules/ views/ views.views_execution.inc, line 32 - Provides views runtime hooks for views.module.
Code
function views_views_form_substitutions() {
$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),
];
}