Loading js/adminUi.js +2 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ /** * Callback used in {@link Drupal.behaviors.views_bulk_operations}. * * @param {object} $element */ Drupal.viewsBulkOperationsUi = function (element) { var $uiElement = $(element); Loading modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php +4 −2 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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, Loading src/Commands/ViewsBulkOperationsCommands.php +0 −3 Original line number Diff line number Diff line Loading @@ -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 Loading src/Plugin/Action/CancelUserAction.php +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading src/Plugin/views/field/ViewsBulkOperationsBulkForm.php +2 −8 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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 Loading
js/adminUi.js +2 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ /** * Callback used in {@link Drupal.behaviors.views_bulk_operations}. * * @param {object} $element */ Drupal.viewsBulkOperationsUi = function (element) { var $uiElement = $(element); Loading
modules/views_bulk_operations_example/src/Plugin/Action/ViewsBulkOperationExampleAction.php +4 −2 Original line number Diff line number Diff line Loading @@ -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. Loading @@ -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, Loading
src/Commands/ViewsBulkOperationsCommands.php +0 −3 Original line number Diff line number Diff line Loading @@ -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 Loading
src/Plugin/Action/CancelUserAction.php +2 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
src/Plugin/views/field/ViewsBulkOperationsBulkForm.php +2 −8 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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