Search for toString

  1. Search 7.x for toString
  2. Search 9.5.x for toString
  3. Search 8.9.x for toString
  4. Search 11.x for toString
  5. Other projects
Title Object type File name Summary
StubUpsert::__toString function core/tests/Drupal/Tests/Core/Database/Stub/StubUpsert.php Implements PHP magic __toString method to convert the query to a string.
ToStringTrait trait core/lib/Drupal/Component/Utility/ToStringTrait.php Wraps __toString in a trait to avoid some fatal errors.
ToStringTrait.php file core/lib/Drupal/Component/Utility/ToStringTrait.php
ToStringTrait::render function core/lib/Drupal/Component/Utility/ToStringTrait.php Renders the object as a string.
ToStringTrait::_die function core/lib/Drupal/Component/Utility/ToStringTrait.php For test purposes, wrap die() in an overridable method.
ToStringTrait::__toString function core/lib/Drupal/Component/Utility/ToStringTrait.php Implements the magic __toString() method.
TranslatableMarkupTest::testToString function core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php Tests that errors are correctly handled when a __toString() fails.
Truncate::__toString function core/modules/sqlite/src/Driver/Database/sqlite/Truncate.php Implements PHP magic __toString method to convert the query to a string.
Truncate::__toString function core/lib/Drupal/Core/Database/Query/Truncate.php Implements PHP magic __toString method to convert the query to a string.
TwigExtensionTestString::__toString function core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php
TwigSimpleCheckToStringNode class core/lib/Drupal/Core/Template/TwigSimpleCheckToStringNode.php Defines a twig node for simplifying CheckToStringNode.
TwigSimpleCheckToStringNode.php file core/lib/Drupal/Core/Template/TwigSimpleCheckToStringNode.php
TwigSimpleCheckToStringNode::compile function core/lib/Drupal/Core/Template/TwigSimpleCheckToStringNode.php
TwigThemeTestController::urlToStringRender function core/modules/system/tests/modules/twig_theme_test/src/TwigThemeTestController.php Renders a URL to a string.
UnroutedUrlTest::testToString function core/tests/Drupal/Tests/Core/UnroutedUrlTest.php Tests the toString() method.
Update::__toString function core/lib/Drupal/Core/Database/Query/Update.php Implements PHP magic __toString method to convert the query to a string.
UpdateRoot::__toString function core/modules/update/src/UpdateRoot.php Gets the root path under which projects are installed or updated.
Upsert::__toString function core/tests/fixtures/database_drivers/module/core_fake/src/Driver/Database/CoreFakeWithAllCustomClasses/Upsert.php Implements PHP magic __toString method to convert the query to a string.
Upsert::__toString function core/modules/pgsql/src/Driver/Database/pgsql/Upsert.php Implements PHP magic __toString method to convert the query to a string.
Upsert::__toString function core/modules/mysql/src/Driver/Database/mysql/Upsert.php Implements PHP magic __toString method to convert the query to a string.
Upsert::__toString function core/modules/sqlite/src/Driver/Database/sqlite/Upsert.php Implements PHP magic __toString method to convert the query to a string.
Url::toString function core/lib/Drupal/Core/Url.php Generates the string URL representation for this Url object.
UrlTest::testToString function core/tests/Drupal/Tests/Core/UrlTest.php Tests the toString() method.
Variable::callableToString function core/lib/Drupal/Component/Utility/Variable.php Generates a human-readable name for a callable.
VariableTest::providerCallableToString function core/tests/Drupal/Tests/Component/Utility/VariableTest.php Data provider for testCallableToString().
VariableTest::testCallableToString function core/tests/Drupal/Tests/Component/Utility/VariableTest.php Tests generating a human-readable name for a callable.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.