function ImageStyleRoutes::create

Same name in other branches
  1. 9 core/modules/image/src/Routing/ImageStyleRoutes.php \Drupal\image\Routing\ImageStyleRoutes::create()
  2. 8.9.x core/modules/image/src/Routing/ImageStyleRoutes.php \Drupal\image\Routing\ImageStyleRoutes::create()
  3. 11.x core/modules/image/src/Routing/ImageStyleRoutes.php \Drupal\image\Routing\ImageStyleRoutes::create()

Overrides ContainerInjectionInterface::create

File

core/modules/image/src/Routing/ImageStyleRoutes.php, line 35

Class

ImageStyleRoutes
Defines a route subscriber to register a URL for serving image styles.

Namespace

Drupal\image\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.