getOutbound example


  public function addOutbound(OutboundPathProcessorInterface $processor$priority = 0) {
    $this->outboundProcessors[$priority][] = $processor;
    $this->sortedOutbound = [];
  }

  /** * {@inheritdoc} */
  public function processOutbound($path, &$options = [], Request $request = NULL, BubbleableMetadata $bubbleable_metadata = NULL) {
    $processors = $this->getOutbound();
    foreach ($processors as $processor) {
      $path = $processor->processOutbound($path$options$request$bubbleable_metadata);
    }
    return $path;
  }

  /** * Returns the sorted array of outbound processors. * * @return array * An array of processor objects. */

  public function addOutbound(OutboundRouteProcessorInterface $processor$priority = 0) {
    $this->outboundProcessors[$priority][] = $processor;
    $this->sortedOutbound = [];
  }

  /** * {@inheritdoc} */
  public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) {
    $processors = $this->getOutbound();
    foreach ($processors as $processor) {
      $processor->processOutbound($route_name$route$parameters$bubbleable_metadata);
    }
  }

  /** * Returns the sorted array of outbound processors. * * @return array * An array of processor objects. */
  
Home | Imprint | This part of the site doesn't use cookies.