public function VarDumpServiceInterface::varDump in Development Environment 8
Dumps the details of a variable.
Parameters
mixed $var: The variable for which details should be dumped.
bool $return: Whether or not to return the data to the calling function. If FALSE, the data is dumped to the screen.
bool $html: Whether or not the outputted data should be an HTML output, or plaintext.
int $level: The depth of $var that should be dumped. Set to 0 (zero) for full depth.
Return value
array|null An array containing the dumped data if $return is set to TRUE, or NULL otherwise.
1 method overrides VarDumpServiceInterface::varDump()
- VarDumpService::varDump in src/
Service/ VarDumpService.php - Dumps the details of a variable.
File
- src/
Service/ VarDumpServiceInterface.php, line 27
Class
- VarDumpServiceInterface
- Interface for varDumpService.
Namespace
Drupal\development_environment\ServiceCode
public function varDump($var, $return = FALSE, $html = FALSE, $level = 0);