view core/modules/action/action.views_execution.inc @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
line wrap: on
line source
<?php

/**
 * @file
 * Provides views runtime hooks for action.module.
 */

/**
 * Implements hook_views_form_substitutions().
 */
function action_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),
  ];
}