You are here

interface OutboundPathProcessorInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/PathProcessor/OutboundPathProcessorInterface.php \Drupal\Core\PathProcessor\OutboundPathProcessorInterface

Defines an interface for classes that process the outbound path.

Hierarchy

Expanded class hierarchy of OutboundPathProcessorInterface

All classes that implement OutboundPathProcessorInterface

7 files declare their use of OutboundPathProcessorInterface
LanguageNegotiationContentEntity.php in core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php
Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationContentEntity.
LanguageNegotiationSession.php in core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php
Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSession.
LanguageNegotiationUrl.php in core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationUrl.php
Contains \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl.
PathProcessorLanguage.php in core/modules/language/src/HttpKernel/PathProcessorLanguage.php
Contains \Drupal\language\HttpKernel\PathProcessorLanguage.
PathProcessorTest.php in core/modules/system/tests/modules/url_alter_test/src/PathProcessorTest.php
Contains \Drupal\url_alter_test\PathProcessorTest.

... See full list

File

core/lib/Drupal/Core/PathProcessor/OutboundPathProcessorInterface.php, line 16
Contains \Drupal\Core\PathProcessor\OutboundPathProcessorInterface.

Namespace

Drupal\Core\PathProcessor
View source
interface OutboundPathProcessorInterface {

  /**
   * Processes the outbound path.
   *
   * @param string $path
   *   The path to process, with a leading slash.
   * @param array $options
   *   (optional) An associative array of additional options, with the following
   *   elements:
   *   - 'query': An array of query key/value-pairs (without any URL-encoding)
   *     to append to the URL.
   *   - 'fragment': A fragment identifier (named anchor) to append to the URL.
   *     Do not include the leading '#' character.
   *   - 'absolute': Defaults to FALSE. Whether to force the output to be an
   *     absolute link (beginning with http:). Useful for links that will be
   *     displayed outside the site, such as in an RSS feed.
   *   - 'language': An optional language object used to look up the alias
   *     for the URL. If $options['language'] is omitted, it defaults to the
   *     current language for the language type LanguageInterface::TYPE_URL.
   *   - 'https': Whether this URL should point to a secure location. If not
   *     defined, the current scheme is used, so the user stays on HTTP or HTTPS
   *     respectively. TRUE enforces HTTPS and FALSE enforces HTTP.
   *   - 'base_url': Only used internally by a path processor, for example, to
   *     modify the base URL when a language dependent URL requires so.
   *   - 'prefix': Only used internally, to modify the path when a language
   *     dependent URL requires so.
   *   - 'route': The route object for the given path. It will be set by
   *     \Drupal\Core\Routing\UrlGenerator::generateFromRoute().
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The HttpRequest object representing the current request.
   * @param \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata
   *   (optional) Object to collect path processors' bubbleable metadata.
   *
   * @return string
   *   The processed path.
   */
  public function processOutbound($path, &$options = array(), Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL);

}

Members