function DevelDumperInterface::exportAsRenderable

Same name in other branches
  1. 4.x src/DevelDumperInterface.php \Drupal\devel\DevelDumperInterface::exportAsRenderable()

Returns a string representation of a variable wrapped in a render array.

Parameters

mixed $input: The variable to export.

string $name: (optional) The label to output before variable, defaults to NULL.

Return value

array String representation of a variable wrapped in a render array.

1 method overrides DevelDumperInterface::exportAsRenderable()
DevelDumperBase::exportAsRenderable in src/DevelDumperBase.php
Returns a string representation of a variable wrapped in a render array.

File

src/DevelDumperInterface.php, line 51

Class

DevelDumperInterface
Base interface definition for DevelDumper plugins.

Namespace

Drupal\devel

Code

public function exportAsRenderable(mixed $input, $name = NULL) : array;