W3cubDocs

/Drupal 8

protected function ToStringTrait::_die

protected ToStringTrait::_die()

For test purposes, wrap die() in an overridable method.

File

core/lib/Drupal/Component/Utility/ToStringTrait.php, line 31

Class

ToStringTrait
Wraps __toString in a trait to avoid some fatals.

Namespace

Drupal\Component\Utility

Code

protected function _die() {
  die();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!ToStringTrait.php/function/ToStringTrait::_die/8.1.x