"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/lib/Drupal/Core/GeneratedUrl.php" (26 Nov 2020, 847 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "GeneratedUrl.php" see the Fossies "Dox" file reference documentation.

    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 }