public function PathBasedGeneratorInterface::generateFromPath

Generates an internal or external URL.

Parameters

$path: (optional) The internal path or external URL being linked to, such as "node/34" or "http://example.com/foo".

$options: (optional) An associative array of additional options.

Return value

A string containing a URL to the given path.

1 method overrides PathBasedGeneratorInterface::generateFromPath()

File

drupal/core/lib/Drupal/Core/Routing/PathBasedGeneratorInterface.php, line 30
Contains Drupal\Core\Routing\PathBasedGeneratorInterface.

Class

PathBasedGeneratorInterface
Defines an interface for generating a url from a path as opposed to a route.

Namespace

Drupal\Core\Routing

Code

public function generateFromPath($path = NULL, $options = array());