protected function ModerationStateTransitionStorage::doCreate in Workbench Moderation 8.2
Same name and namespace in other branches
- 8 src/ModerationStateTransitionStorage.php \Drupal\workbench_moderation\ModerationStateTransitionStorage::doCreate()
Performs storage-specific creation of entities.
Parameters
array $values: An array of values to set, keyed by property name.
Return value
\Drupal\Core\Entity\EntityInterface
Overrides ConfigEntityStorage::doCreate
File
- src/
ModerationStateTransitionStorage.php, line 48
Class
Namespace
Drupal\workbench_moderationCode
protected function doCreate(array $values) {
/* @var \Drupal\workbench_moderation\ModerationStateTransitionInterface $entity */
$entity = parent::doCreate($values);
return $entity
->setModerationStateConfigPrefix($this->entityTypeManager
->getDefinition('moderation_state')
->getConfigPrefix());
}