You are here

protected function ModerationStateTransition::getModerationStateConfigPrefix in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ModerationStateTransition.php \Drupal\workbench_moderation\Entity\ModerationStateTransition::getModerationStateConfigPrefix()

Gets the moderation state config prefix.

Return value

string Moderation state config prefix.

1 call to ModerationStateTransition::getModerationStateConfigPrefix()
ModerationStateTransition::calculateDependencies in src/Entity/ModerationStateTransition.php
Calculates dependencies and stores them in the dependency property.

File

src/Entity/ModerationStateTransition.php, line 123

Class

ModerationStateTransition
Defines the Moderation state transition entity.

Namespace

Drupal\workbench_moderation\Entity

Code

protected function getModerationStateConfigPrefix() {
  if (!isset($this->moderationStateConfigPrefix)) {
    $this->moderationStateConfigPrefix = \Drupal::service('entity_type.manager')
      ->getDefinition('moderation_state')
      ->getConfigPrefix();
  }
  return $this->moderationStateConfigPrefix;
}