Commit 2c671313 authored by Marcin Grabias's avatar Marcin Grabias
Browse files

Fixed some coding standards.

parent 06825048
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@

  /**
   * Callback used in {@link Drupal.behaviors.views_bulk_operations}.
   *
   * @param {object} $element
   */
  Drupal.viewsBulkOperationsUi = function (element) {
    var $uiElement = $(element);
+4 −2
Original line number Diff line number Diff line
@@ -72,7 +72,8 @@ class ViewsBulkOperationExampleAction extends ViewsBulkOperationsActionBase impl
   *
   * @param array $form
   *   Form array.
   * @param \Drupal\views_bulk_operations_example\Plugin\Action\Drupal\Core\Form\FormStateInterface $form_state The form state object.
   * @param \Drupal\views_bulk_operations_example\Plugin\Action\Drupal\Core\Form\FormStateInterface $form_state
   *   The form state object.
   *
   * @return array
   *   The configuration form.
@@ -94,7 +95,8 @@ class ViewsBulkOperationExampleAction extends ViewsBulkOperationsActionBase impl
   *
   * @param array $form
   *   Form array.
   * @param \Drupal\views_bulk_operations_example\Plugin\Action\Drupal\Core\Form\FormStateInterface $form_state The form state object.
   * @param \Drupal\views_bulk_operations_example\Plugin\Action\Drupal\Core\Form\FormStateInterface $form_state
   *   The form state object.
   */
  public function submitConfigurationForm(array &$form, FormStateInterface $form_state): void {
    // This is not required here, when this method is not defined,
+0 −3
Original line number Diff line number Diff line
@@ -80,9 +80,6 @@ class ViewsBulkOperationsCommands extends DrushCommands {
   * @param array $options
   *   (optional) An array of options.
   *
   * @return string
   *   The summary message.
   *
   * @command views:bulk-operations:execute
   *
   * @option display-id
+2 −1
Original line number Diff line number Diff line
@@ -47,7 +47,8 @@ class CancelUserAction extends ViewsBulkOperationsActionBase implements Containe
   *   The plugin Id.
   * @param mixed $plugin_definition
   *   Plugin definition.
   * @param \Drupal\views_bulk_operations\Plugin\Action\Drupal\Core\Session\AccountInterface $currentUser The current user.
   * @param \Drupal\views_bulk_operations\Plugin\Action\Drupal\Core\Session\AccountInterface $currentUser
   *   The current user.
   * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
   *   The config factory object.
   * @param \Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler
+2 −8
Original line number Diff line number Diff line
@@ -37,37 +37,31 @@ class ViewsBulkOperationsBulkForm extends FieldPluginBase implements CacheableDe

  /**
   * Object that gets the current view data.
   *
   */
  protected ViewsbulkOperationsViewDataInterface $viewData;

  /**
   * Views Bulk Operations action manager.
   *
   */
  protected ViewsBulkOperationsActionManager $actionManager;

  /**
   * Views Bulk Operations action processor.
   *
   */
  protected ViewsBulkOperationsActionProcessorInterface $actionProcessor;

  /**
   * The tempstore service.
   *
   */
  protected PrivateTempStoreFactory $tempStoreFactory;

  /**
   * The current user object.
   *
   */
  protected AccountInterface $currentUser;

  /**
   * The request stack.
   *
   */
  protected RequestStack $requestStack;

@@ -200,7 +194,7 @@ class ViewsBulkOperationsBulkForm extends FieldPluginBase implements CacheableDe
   * @param array $bulk_form_keys
   *   The calculated bulk form keys.
   */
  protected function updateTempstoreData(?array $bulk_form_keys = NULL): void {
  protected function updateTempstoreData(array $bulk_form_keys = NULL): void {
    // Initialize tempstore object and get data if available.
    $this->tempStoreData = $this->getTempstoreData($this->view->id(), $this->view->current_display);

Loading