function GeneratedLink::jsonSerialize

Attributes

#[\ReturnTypeWillChange]

File

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

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.