function GeneratedLink::__toString

Same name 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()
  3. 11.x core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::__toString()

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;
}

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