protected StateTransitionValidation::loadBundleEntity($bundle_entity_type_id, $bundle_id)
Loads a specific bundle entity.
Parameters
string $bundle_entity_type_id: The bundle entity type ID.
string $bundle_id: The bundle ID.
Return value
\Drupal\Core\Config\Entity\ConfigEntityInterface|null The specific bundle entity.
File
- core/modules/content_moderation/src/StateTransitionValidation.php, line 243
Class
- StateTransitionValidation
- Validates whether a certain state transition is allowed.
Namespace
Drupal\content_moderation
Code
1 2 3 | protected function loadBundleEntity( $bundle_entity_type_id , $bundle_id ) { return $this ->entityTypeManager->getStorage( $bundle_entity_type_id )->load( $bundle_id ); } |
Please login to continue.