Permissions.php in Lightning Workflow 8.3
File
modules/lightning_scheduler/src/Permissions.php
View source
<?php
namespace Drupal\lightning_scheduler;
use Drupal\content_moderation\Permissions as BasePermissions;
class Permissions extends BasePermissions {
public function transitionPermissions() {
$permissions = parent::transitionPermissions();
foreach ($permissions as $permission => $info) {
unset($permissions[$permission]);
$permission = preg_replace('/^use /', 'schedule ', $permission);
$title = $info['title'];
$info['title'] = $this
->t('%workflow workflow: Schedule %transition transition.', $title
->getArguments());
$permissions[$permission] = $info;
}
return $permissions;
}
}
Classes
Name |
Description |
Permissions |
Exposes permissions for scheduling moderation state changes. |