Search for toString

  1. Search 7.x for toString
  2. Search 9.5.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.
AuditResult::__toString function core/modules/migrate/src/Audit/AuditResult.php Returns the reasons the migration passed or failed, as a string.
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.
ContentEntity::__toString function core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php Allows class to decide how it will react when it is treated like 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.
EasyRdf_ParsedUri::toString function core/modules/rdf/tests/src/Traits/EasyRdf_ParsedUri.php Convert the parsed URI back into a string
EasyRdf_ParsedUri::__toString function core/modules/rdf/tests/src/Traits/EasyRdf_ParsedUri.php Magic method to convert the URI, when casted, back to a string
EmbeddedDataSource::__toString function core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php Allows class to decide how it will react when it is treated like a string.
EmptySource::__toString function core/modules/migrate/src/Plugin/migrate/source/EmptySource.php Allows class to decide how it will react when it is treated like a string.
EngineTwigTest::testTwigUrlToString function core/modules/system/tests/src/Functional/Theme/EngineTwigTest.php Tests the magic url to string Twig functions.
EntityQueryTest::testToString function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests __toString().
EntityResourceTestBase::castToString function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php Transforms a normalization: casts all non-string types to strings.
FilterProcessResult::__toString function core/modules/filter/src/FilterProcessResult.php Gets the processed text.
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
@covers ::jsonSerialize
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
@covers ::jsonSerialize
Insert::__toString function core/lib/Drupal/Core/Database/Query/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/mysql/Insert.php Implements PHP magic __toString method to convert the query to a string.
Insert::__toString function core/lib/Drupal/Core/Database/Driver/sqlite/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.
MigrateExternalTranslatedTestSource::__toString function core/modules/migrate/tests/modules/migrate_external_translated_test/src/Plugin/migrate/source/MigrateExternalTranslatedTestSource.php Allows class to decide how it will react when it is treated like a string.
MigrateSourceInterface::__toString function core/modules/migrate/src/Plugin/MigrateSourceInterface.php Allows class to decide how it will react when it is treated like a string.
NativeUpsert::__toString function core/lib/Drupal/Core/Database/Driver/pgsql/NativeUpsert.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.
SafeMarkupTestString::__toString function core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php
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.
SqlBase::__toString function core/modules/migrate/src/Plugin/migrate/source/SqlBase.php Prints the query string when the object is used as a string.
StringObject::__toString function core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
StubSourcePlugin::__toString function core/modules/migrate/tests/src/Unit/MigrateSourceTest.php Allows class to decide how it will react when it is treated like a string.
TextWrapper::__toString function core/tests/Drupal/Tests/Component/Utility/TextWrapper.php Magic method
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.

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