function GeneratedLink::jsonSerialize

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::jsonSerialize()
  2. 10 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::jsonSerialize()
  3. 11.x core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::jsonSerialize()

File

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

Class

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

Namespace

Drupal\Core

Code

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

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