Search for toString

  1. Search 7.x for toString
  2. Search 8.9.x for toString
  3. Search 10.3.x for toString
  4. Search 11.x for toString
  5. Other projects
Title Object type File name Summary
Attribute::__toString function core/lib/Drupal/Core/Template/Attribute.php Implements the magic __toString() method.
AttributeArray::__toString function core/lib/Drupal/Core/Template/AttributeArray.php Implements the magic __toString() method.
AttributeBoolean::__toString function core/lib/Drupal/Core/Template/AttributeBoolean.php Implements the magic __toString() method.
AttributeString::__toString function core/lib/Drupal/Core/Template/AttributeString.php Implements the magic __toString() method.
AttributeValueBase::__toString function core/lib/Drupal/Core/Template/AttributeValueBase.php Implements the magic __toString() method.
Condition::__toString function core/lib/Drupal/Core/Database/Query/Condition.php Implements PHP magic __toString method to convert the conditions to string.
Constraint::__toString function core/lib/Drupal/Component/Version/Constraint.php Gets the constraint as a string.
Delete::__toString function core/lib/Drupal/Core/Database/Query/Delete.php Implements PHP magic __toString method to convert the query to a string.
EntityQueryTest::testToString function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests __toString().
FormattableMarkup::__toString function core/lib/Drupal/Component/Render/FormattableMarkup.php Returns markup.
FormattableMarkupTest::testToString function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @covers ::__toString[[api-linebreak]]
@covers ::jsonSerialize[[api-linebreak]]
GeneratedLink::__toString function core/lib/Drupal/Core/GeneratedLink.php Returns markup.
HtmlEscapedText::__toString function core/lib/Drupal/Component/Render/HtmlEscapedText.php Returns markup.
HtmlEscapedTextTest::providerToString function core/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php Data provider for testToString().
HtmlEscapedTextTest::testToString function core/tests/Drupal/Tests/Component/Render/HtmlEscapedTextTest.php @covers ::__toString[[api-linebreak]]
@covers ::jsonSerialize[[api-linebreak]]
Insert::__toString function core/modules/pgsql/src/Driver/Database/pgsql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Query/Insert.php Implements PHP magic __toString method to convert the query to a string.
Link::toString function core/lib/Drupal/Core/Link.php Generates the HTML for this Link object.
MarkupInterface::__toString function core/lib/Drupal/Component/Render/MarkupInterface.php Returns markup.
MarkupTrait::__toString function core/lib/Drupal/Component/Render/MarkupTrait.php Returns the string version of the Markup object.
Merge::__toString function core/lib/Drupal/Core/Database/Query/Merge.php Implements PHP magic __toString method to convert the query to a string.
PoHeader::__toString function core/lib/Drupal/Component/Gettext/PoHeader.php Generate a Gettext PO formatted header string based on data set earlier.
PoItem::__toString function core/lib/Drupal/Component/Gettext/PoItem.php Output the PoItem as a string.
Query::__toString function core/lib/Drupal/Core/Entity/Query/Sql/Query.php Implements the magic __toString method.
Query::__toString function core/lib/Drupal/Core/Database/Query/Query.php Implements PHP magic __toString method to convert the query to a string.
Select::__toString function core/lib/Drupal/Core/Database/Query/Select.php Implements PHP magic __toString method to convert the query to a string.
SelectExtender::__toString function core/lib/Drupal/Core/Database/Query/SelectExtender.php Returns a string representation of how the query will be executed in SQL.
SelectInterface::__toString function core/lib/Drupal/Core/Database/Query/SelectInterface.php Returns a string representation of how the query will be executed in SQL.
StaticReflectionClass::__toString function core/lib/Drupal/Component/Annotation/Doctrine/StaticReflectionClass.php
StringObject::__toString function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
ToStringTrait trait core/lib/Drupal/Component/Utility/ToStringTrait.php Wraps __toString in a trait to avoid some fatals.
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/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
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/corefake/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.
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.