mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4034 from dhensby/pulls/debug-viewable-data-3
NEW ViewableData_Debugger implements __toString
This commit is contained in:
commit
2cc9d02f75
@ -700,7 +700,14 @@ class ViewableData_Debugger extends ViewableData {
|
||||
$this->object = $object;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string The rendered debugger
|
||||
*/
|
||||
public function __toString() {
|
||||
return $this->forTemplate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return debugging information, as XHTML. If a field name is passed, it will show debugging information on that
|
||||
* field, otherwise it will show information on all methods and fields.
|
||||
|
Loading…
Reference in New Issue
Block a user