action.views_execution.inc 433 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Provides views runtime hooks for action.module.
  5. */
  6. /**
  7. * Implements hook_views_form_substitutions().
  8. */
  9. function action_views_form_substitutions() {
  10. $select_all = [
  11. '#type' => 'checkbox',
  12. '#default_value' => FALSE,
  13. '#attributes' => ['class' => ['action-table-select-all']],
  14. ];
  15. return [
  16. '<!--action-bulk-form-select-all-->' => \Drupal::service('renderer')->render($select_all),
  17. ];
  18. }