MetadataBubblingUrlGenerator::generate

public MetadataBubblingUrlGenerator::generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH)

File

core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php, line 94

Class

MetadataBubblingUrlGenerator
Decorator for the URL generator, which bubbles bubbleable URL metadata.

Namespace

Drupal\Core\Render

Code

public function generate($name, $parameters = array(), $referenceType = self::ABSOLUTE_PATH) {
  $options['absolute'] = is_bool($referenceType) ? $referenceType : $referenceType === self::ABSOLUTE_URL;
  $generated_url = $this->generateFromRoute($name, $parameters, $options, TRUE);
  $this->bubble($generated_url);
  return $generated_url->getGeneratedUrl();
}
doc_Drupal
2016-10-29 09:28:21
Comments
Leave a Comment

Please login to continue.