public function FormModeManagerEntityController::bundledEntity in Form mode manager 8.2
Evaluate if current entity have bundles or not.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $entity_storage: The entity storage.
Return value
string The bundle key if entity has bundles or empty.
1 call to FormModeManagerEntityController::bundledEntity()
- FormModeManagerEntityController::getEntityControllerResponse in src/
Controller/ FormModeManagerEntityController.php - Instantiate correct objects depending entities.
File
- src/
Controller/ FormModeManagerEntityController.php, line 284
Class
- FormModeManagerEntityController
- Generic Controller for entity using form mode manager routing.
Namespace
Drupal\form_mode_manager\ControllerCode
public function bundledEntity(EntityStorageInterface $entity_storage) {
return $entity_storage
->getEntityType()
->getKey('bundle');
}