function EntityTypeInfoController::entityTypeDetail
Same name in other branches
- 8.x-1.x src/Controller/EntityTypeInfoController.php \Drupal\devel\Controller\EntityTypeInfoController::entityTypeDetail()
- 5.x src/Controller/EntityTypeInfoController.php \Drupal\devel\Controller\EntityTypeInfoController::entityTypeDetail()
Returns a render array representation of the entity type.
Parameters
string $entity_type_id: The name of the entity type to retrieve.
Return value
array A render array containing the entity type.
Throws
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException If the requested entity type is not defined.
1 string reference to 'EntityTypeInfoController::entityTypeDetail'
File
-
src/
Controller/ EntityTypeInfoController.php, line 153
Class
- EntityTypeInfoController
- Provides route responses for the entity types info page.
Namespace
Drupal\devel\ControllerCode
public function entityTypeDetail($entity_type_id) {
if (!($entity_type = $this->entityTypeManager()
->getDefinition($entity_type_id, FALSE))) {
throw new NotFoundHttpException();
}
return $this->dumper
->exportAsRenderable($entity_type, $entity_type_id);
}