public function EntityPrintController::viewPrintDebug in Entity Print 8.2
A debug callback for styling up the Print.
@TODO, improve permissions in https://www.drupal.org/node/2759553
Parameters
string $export_type: The export type.
string $entity_type: The entity type.
int $entity_id: The entity id.
Return value
\Symfony\Component\HttpFoundation\Response The response object.
1 string reference to 'EntityPrintController::viewPrintDebug'
File
- src/
Controller/ EntityPrintController.php, line 110
Class
- EntityPrintController
- Print controller.
Namespace
Drupal\entity_print\ControllerCode
public function viewPrintDebug($export_type, $entity_type, $entity_id) {
$entity = $this->entityTypeManager
->getStorage($entity_type)
->load($entity_id);
$use_default_css = $this
->config('entity_print.settings')
->get('default_css');
return new Response($this->printBuilder
->printHtml($entity, $use_default_css, FALSE));
}