You are here

README.txt in Views Bulk Operations (VBO) 8

Introduction
------------

Views Bulk Operations augments Views by allowing actions
(provided by Drupal core or contrib modules) to be executed
on the selected view rows.

It does so by showing a checkbox in front of each displayed row, and adding a
select box on top of the View containing operations that can be applied.


Getting started
-----------------

1. Create a View with a page or block display.
2. Add a "Views bulk operations" field (global), available on
   all entity types.
3. Configure the field by selecting at least one operation.
4. Go to the View page. VBO functionality should be present.


Creating custom actions
-----------------------

Example that covers different possibilities is available in
modules/views_bulk_operations_example/.

In a module, create an action plugin (check the included example module,
test actions in /tests/views_bulk_operations_test/src/Plugin/Action
or \core\modules\node\src\Plugin\Action namespace for simple implementations).

Available annotation parameters:
  - id: The action ID (required),
  - label: Action label (required),
  - type: Entity type for the action, if left empty, action will be
    applicable to all entity types (required),
  - confirm: If set to TRUE and the next parameter is empty,
    the module default confirmation form will be used (default: FALSE),
  - confirm_form_route_name: Route name of the action confirmation form.
    If left empty and the previous parameter is empty, there will be
    no confirmation step (default: empty string).
  - pass_context: If set to TRUE, the entire batch context 
    will be added to the action $context parameter (default: FALSE).
  - pass_view: If set to TRUE, the entire view with selected
    results ($view->result) of the current batch will be available
    in the action $view parameter (default: FALSE).
  - requirements: an array of requirements an action must meet
    to be displayed on the action selection form. At the moment
    only one possible requirement is supported: '_permission', if
    the current user has that permission, the action execution will
    be possible.


Additional notes
----------------

Full documentation with examples is available at
https://www.drupal.org/docs/8/modules/views-bulk-operations-vbo.

File

README.txt
View source
  1. Introduction
  2. ------------
  3. Views Bulk Operations augments Views by allowing actions
  4. (provided by Drupal core or contrib modules) to be executed
  5. on the selected view rows.
  6. It does so by showing a checkbox in front of each displayed row, and adding a
  7. select box on top of the View containing operations that can be applied.
  8. Getting started
  9. -----------------
  10. 1. Create a View with a page or block display.
  11. 2. Add a "Views bulk operations" field (global), available on
  12. all entity types.
  13. 3. Configure the field by selecting at least one operation.
  14. 4. Go to the View page. VBO functionality should be present.
  15. Creating custom actions
  16. -----------------------
  17. Example that covers different possibilities is available in
  18. modules/views_bulk_operations_example/.
  19. In a module, create an action plugin (check the included example module,
  20. test actions in /tests/views_bulk_operations_test/src/Plugin/Action
  21. or \core\modules\node\src\Plugin\Action namespace for simple implementations).
  22. Available annotation parameters:
  23. - id: The action ID (required),
  24. - label: Action label (required),
  25. - type: Entity type for the action, if left empty, action will be
  26. applicable to all entity types (required),
  27. - confirm: If set to TRUE and the next parameter is empty,
  28. the module default confirmation form will be used (default: FALSE),
  29. - confirm_form_route_name: Route name of the action confirmation form.
  30. If left empty and the previous parameter is empty, there will be
  31. no confirmation step (default: empty string).
  32. - pass_context: If set to TRUE, the entire batch context
  33. will be added to the action $context parameter (default: FALSE).
  34. - pass_view: If set to TRUE, the entire view with selected
  35. results ($view->result) of the current batch will be available
  36. in the action $view parameter (default: FALSE).
  37. - requirements: an array of requirements an action must meet
  38. to be displayed on the action selection form. At the moment
  39. only one possible requirement is supported: '_permission', if
  40. the current user has that permission, the action execution will
  41. be possible.
  42. Additional notes
  43. ----------------
  44. Full documentation with examples is available at
  45. https://www.drupal.org/docs/8/modules/views-bulk-operations-vbo.