Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsViewsExecutionHooks.php

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\Hook

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal