function EntityDebugController::entityLoadWithReferences
Returns the loaded structure of the current entity with references.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: A RouteMatch object.
Return value
array Array of page elements to render.
File
-
src/
Controller/ EntityDebugController.php, line 107
Class
- EntityDebugController
- Controller for devel entity debug.
Namespace
Drupal\devel\ControllerCode
public function entityLoadWithReferences(RouteMatchInterface $route_match) : array {
$entity = $this->getEntityWithFieldDefinitions($route_match);
if (!$entity instanceof EntityInterface) {
return [];
}
return $this->dumper
->exportAsRenderable($entity, NULL, NULL, TRUE);
}