Permissions.php in Lightning Scheduler 8
File
src/Permissions.php
View source
<?php
namespace Drupal\lightning_scheduler;
use Drupal\content_moderation\Permissions as BasePermissions;
final 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 |
@internal
This is an internal part of Lightning Scheduler and may be changed or
removed at any time without warning. It should not be used by external
code in any way. |