public static function ScheduledTransitionsPermissions::rescheduleScheduledTransitionsPermission in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/ScheduledTransitionsPermissions.php \Drupal\scheduled_transitions\ScheduledTransitionsPermissions::rescheduleScheduledTransitionsPermission()
Creates a permission for rescheduling scheduled transitions for a bundle.
Parameters
string $entityTypeId: An entity type ID.
string $bundle: A bundle ID.
Return value
string Permission ID for this bundle.
3 calls to ScheduledTransitionsPermissions::rescheduleScheduledTransitionsPermission()
- ScheduledTransitionRescheduleFormTest::testLatestOptionPreselected in tests/
src/ Functional/ ScheduledTransitionRescheduleFormTest.php - Test rescheduling.
- ScheduledTransitionsEntityHooks::entityAccess in src/
ScheduledTransitionsEntityHooks.php - Implements hook_entity_access().
- ScheduledTransitionsPermissions::permissions in src/
ScheduledTransitionsPermissions.php - Generate dynamic permissions.
File
- src/
ScheduledTransitionsPermissions.php, line 158
Class
- ScheduledTransitionsPermissions
- Generates permissions for host entity types for scheduled transitions.
Namespace
Drupal\scheduled_transitionsCode
public static function rescheduleScheduledTransitionsPermission(string $entityTypeId, string $bundle) : string {
return sprintf('reschedule scheduled transitions %s %s', $entityTypeId, $bundle);
}