UnsubscribeUsers.php in Subscriptions 2.0.x
File
src/Plugin/Action/UnsubscribeUsers.php
View source
<?php
namespace Drupal\subscriptions\Plugin\Action;
use Drupal\Core\Action\ActionBase;
use Drupal\Core\Session\AccountInterface;
use Drupal\user\UserInterface;
class UnsubscribeUsers extends ActionBase {
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
return $account
->hasPermission('bulk-administer user subscriptions');
}
public function execute(UserInterface $user = NULL) {
}
}