function ToStringTrait::_die
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::_die()
- 8.9.x core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::_die()
- 10 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::_die()
For test purposes, wrap die() in an overridable method.
1 call to ToStringTrait::_die()
- ToStringTrait::__toString in core/
lib/ Drupal/ Component/ Utility/ ToStringTrait.php - Implements the magic __toString() method.
File
-
core/
lib/ Drupal/ Component/ Utility/ ToStringTrait.php, line 31
Class
- ToStringTrait
- Wraps __toString in a trait to avoid some fatal errors.
Namespace
Drupal\Component\UtilityCode
protected function _die() {
die;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.