public static function ScheduledTransitionsPermissions::addScheduledTransitionsPermission in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 src/ScheduledTransitionsPermissions.php \Drupal\scheduled_transitions\ScheduledTransitionsPermissions::addScheduledTransitionsPermission()
Creates a permission for creating new 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.
8 calls to ScheduledTransitionsPermissions::addScheduledTransitionsPermission()
- ScheduledTransitionModalFormJavascriptTest::testRevisionLogOverride in tests/
src/ FunctionalJavascript/ ScheduledTransitionModalFormJavascriptTest.php - Tests revision logs.
- ScheduledTransitionModalFormTest::testAlterTargetRevisionIds in tests/
src/ Functional/ ScheduledTransitionModalFormTest.php - Tests ability to alter target revisions via query alter hook.
- ScheduledTransitionModalFormTest::testLatestOptionPreselected in tests/
src/ Functional/ ScheduledTransitionModalFormTest.php - Test by default the latest revision radio is prechecked.
- ScheduledTransitionModalFormTest::testRevisionLogHtml in tests/
src/ Functional/ ScheduledTransitionModalFormTest.php - Tests revision logs.
- ScheduledTransitionsEntityHooks::entityAccess in src/
ScheduledTransitionsEntityHooks.php - Implements hook_entity_access().
File
- src/
ScheduledTransitionsPermissions.php, line 152
Class
- ScheduledTransitionsPermissions
- Generates permissions for host entity types for scheduled transitions.
Namespace
Drupal\scheduled_transitionsCode
public static function addScheduledTransitionsPermission(string $entityTypeId, string $bundle) : string {
return sprintf('add scheduled transitions %s %s', $entityTypeId, $bundle);
}