You are here

public function GeneratedLink::jsonSerialize in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::jsonSerialize()
  2. 10 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();
}