function AssetRoutes::create

Same name in other branches
  1. 11.x core/modules/system/src/Routing/AssetRoutes.php \Drupal\system\Routing\AssetRoutes::create()

Overrides ContainerInjectionInterface::create

File

core/modules/system/src/Routing/AssetRoutes.php, line 28

Class

AssetRoutes
Defines a routes' callback to register a URL for serving assets.

Namespace

Drupal\system\Routing

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('stream_wrapper_manager'));
}

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