5 use Drupal\Core\Render\BubbleableMetadata;
8 * Used to return generated URLs, along with associated bubbleable metadata.
10 * Note: not to be confused with \Drupal\Core\Url, which is for passing around
11 * ungenerated URLs (typically route name + route parameters).
13 class GeneratedUrl extends BubbleableMetadata {
16 * The string value of the URL.
20 protected $generatedUrl = '';
23 * Gets the generated URL.
27 public function getGeneratedUrl() {
28 return $this->generatedUrl ;
32 * Sets the generated URL.
34 * @param string $generated_url
39 public function setGeneratedUrl($generated_url) {
40 $this->generatedUrl = $generated_url;