You are here

abstract public function ToStringTrait::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::render()
  2. 9 core/lib/Drupal/Component/Utility/ToStringTrait.php \Drupal\Component\Utility\ToStringTrait::render()

Renders the object as a string.

Return value

string|object The rendered string or an object implementing __toString().

File

core/lib/Drupal/Component/Utility/ToStringTrait.php, line 41

Class

ToStringTrait
Wraps __toString in a trait to avoid some fatals.

Namespace

Drupal\Component\Utility

Code

public abstract function render();