You are here

public static function ScheduledTransitionsPermissions::addScheduledTransitionsPermission in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 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().

... See full list

File

src/ScheduledTransitionsPermissions.php, line 152

Class

ScheduledTransitionsPermissions
Generates permissions for host entity types for scheduled transitions.

Namespace

Drupal\scheduled_transitions

Code

public static function addScheduledTransitionsPermission(string $entityTypeId, string $bundle) : string {
  return sprintf('add scheduled transitions %s %s', $entityTypeId, $bundle);
}