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 10.3.x for toString
  5. Other projects
Title Object type File name Summary
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/lib/Drupal/Core/Database/Query/Truncate.php Implements PHP magic __toString method to convert the query to a string.
Truncate::__toString function core/modules/sqlite/src/Driver/Database/sqlite/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
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/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.
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/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.
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.