W3cubDocs

/Drupal 8

public function GeneratedLink::__toString

public GeneratedLink::__toString()

Returns markup.

Return value

string The markup.

Overrides MarkupInterface::__toString

File

core/lib/Drupal/Core/GeneratedLink.php, line 49

Class

GeneratedLink
Used to return generated links, along with associated cacheability metadata.

Namespace

Drupal\Core

Code

public function __toString() {
  return (string) $this->generatedLink;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!GeneratedLink.php/function/GeneratedLink::__toString/8.1.x