function BlockEntityOffCanvasFormRouteProcessorBC::processOutbound

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));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.