function views_views_form_substitutions

Same name in other branches
  1. 9 core/modules/views/views.views_execution.inc \views_views_form_substitutions()
  2. 8.9.x core/modules/views/views.views_execution.inc \views_views_form_substitutions()
  3. 10 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

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),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.