You are here

protected function ToStringTrait::_die in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::_die()
  2. 9 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\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;
}