You are here

public function GeneratedLink::__toString in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::__toString()
  2. 10 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::__toString()

Returns markup.

Return value

string The markup.

Overrides MarkupInterface::__toString

2 calls to GeneratedLink::__toString()
GeneratedLink::count in core/lib/Drupal/Core/GeneratedLink.php
GeneratedLink::jsonSerialize in core/lib/Drupal/Core/GeneratedLink.php

File

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

Class

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

Namespace

Drupal\Core

Code

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