You are here

README.txt in Views Bulk Operations (VBO) 8.3

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).
  - requirements: an array of requirements an action must meet
    to be displayed on the action selection form. At the moment
    two possible requirements are supported:
    - '_permission', if the current user has that permission, the action
      execution will be possible.
    - '_custom_access', checks if the output of `customAccess` method from
      the action class is TRUE (default implementation included in
      ViewsBulkOperationsActionBase).


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. - requirements: an array of requirements an action must meet
  33. to be displayed on the action selection form. At the moment
  34. two possible requirements are supported:
  35. - '_permission', if the current user has that permission, the action
  36. execution will be possible.
  37. - '_custom_access', checks if the output of `customAccess` method from
  38. the action class is TRUE (default implementation included in
  39. ViewsBulkOperationsActionBase).
  40. Additional notes
  41. ----------------
  42. Full documentation with examples is available at
  43. https://www.drupal.org/docs/8/modules/views-bulk-operations-vbo.