Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / GeneratedUrl.php
1 <?php
2
3 namespace Drupal\Core;
4
5 use Drupal\Core\Render\BubbleableMetadata;
6
7 /**
8  * Used to return generated URLs, along with associated bubbleable metadata.
9  *
10  * Note: not to be confused with \Drupal\Core\Url, which is for passing around
11  *   ungenerated URLs (typically route name + route parameters).
12  */
13 class GeneratedUrl extends BubbleableMetadata {
14
15   /**
16    * The string value of the URL.
17    *
18    * @var string
19    */
20   protected $generatedUrl = '';
21
22   /**
23    * Gets the generated URL.
24    *
25    * @return string
26    */
27   public function getGeneratedUrl() {
28     return $this->generatedUrl ;
29   }
30
31   /**
32    * Sets the generated URL.
33    *
34    * @param string $generated_url
35    *   The generated URL.
36    *
37    * @return $this
38    */
39   public function setGeneratedUrl($generated_url) {
40     $this->generatedUrl = $generated_url;
41     return $this;
42   }
43
44 }