You are here

public static function ImageStyleRoutes::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/image/src/Routing/ImageStyleRoutes.php \Drupal\image\Routing\ImageStyleRoutes::create()
  2. 9 core/modules/image/src/Routing/ImageStyleRoutes.php \Drupal\image\Routing\ImageStyleRoutes::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'));
}