Commit ae6f1080 authored by mxh's avatar mxh
Browse files

Issue #3300504 by mxh: Provide explicit events for customizing the confirmation form

parent 9e0536f9
Loading
Loading
Loading
Loading

eca_vbo.routing.yml

0 → 100644
+9 −0
Original line number Diff line number Diff line
eca_vbo.confirm:
  path: '/views-bulk-operations/eca-vbo-confirm/{view_id}/{display_id}'
  defaults:
    _form: '\Drupal\eca_vbo\Form\EcaVboConfirm'
    _title: 'Confirm execution'
  requirements:
    _views_bulk_operation_access: 'TRUE'
  options:
    _admin_route: TRUE
+27 −0
Original line number Diff line number Diff line
@@ -61,4 +61,31 @@ final class EcaVboEvents {
   */
  public const FORM_SUBMIT = 'eca_vbo.form_submit';

  /**
   * Identifies the \Drupal\eca_vbo\Event\VboConfirmFormBuildEvent event.
   *
   * @Event
   *
   * @var string
   */
  public const CONFIRM_FORM_BUILD = 'eca_vbo.confirm_form_build';

  /**
   * Identifies the \Drupal\eca_vbo\Event\VboConfirmFormValidateEvent event.
   *
   * @Event
   *
   * @var string
   */
  public const CONFIRM_FORM_VALIDATE = 'eca_vbo.confirm_form_validate';

  /**
   * Identifies the \Drupal\eca_vbo\Event\VboConfirmFormSubmitEvent event.
   *
   * @Event
   *
   * @var string
   */
  public const CONFIRM_FORM_SUBMIT = 'eca_vbo.confirm_form_submit';

}
+12 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\eca_vbo\Event;

/**
 * Dispatches when an VBO confirm execution form is being build up.
 *
 * @internal
 *   This class is not meant to be used as a public API. It is subject for name
 *   change or may be removed completely, also on minor version updates.
 */
class VboConfirmFormBuildEvent extends VboFormEventBase {}
+12 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\eca_vbo\Event;

/**
 * Dispatches when an VBO confirm execution form is being submitted.
 *
 * @internal
 *   This class is not meant to be used as a public API. It is subject for name
 *   change or may be removed completely, also on minor version updates.
 */
class VboConfirmFormSubmitEvent extends VboFormEventBase {}
+12 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\eca_vbo\Event;

/**
 * Dispatches when an VBO confirm execution form is being validated.
 *
 * @internal
 *   This class is not meant to be used as a public API. It is subject for name
 *   change or may be removed completely, also on minor version updates.
 */
class VboConfirmFormValidateEvent extends VboFormEventBase {}
Loading