You are here

public function BlockEntityOffCanvasFormRouteProcessorBC::processOutbound in Drupal 8

Processes the outbound route.

Parameters

string $route_name: The route name.

\Symfony\Component\Routing\Route $route: The outbound route to process.

array $parameters: An array of parameters to be passed to the route compiler. Passed by reference.

\Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata: (optional) Object to collect route processors' bubbleable metadata.

Return value

The processed path.

Overrides OutboundRouteProcessorInterface::processOutbound

File

core/modules/settings_tray/src/RouteProcessor/BlockEntityOffCanvasFormRouteProcessorBC.php, line 37

Class

BlockEntityOffCanvasFormRouteProcessorBC
Processes the Block entity off-canvas form BC route.

Namespace

Drupal\settings_tray\RouteProcessor

Code

public function processOutbound($route_name, Route $route, array &$parameters, BubbleableMetadata $bubbleable_metadata = NULL) {
  if ($route_name === 'entity.block.off_canvas_form') {
    $redirected_route_name = 'entity.block.settings_tray_form';
    @trigger_error(sprintf("The '%s' route is deprecated since version 8.5.x and will be removed in 9.0.0. Use the '%s' route instead.", $route_name, $redirected_route_name), E_USER_DEPRECATED);
    static::overwriteRoute($route, $this->routeProvider
      ->getRouteByName($redirected_route_name));
  }
}