class ImageStyleRoutes implements ContainerInjectionInterface (View source)

Defines a route subscriber to register a url for serving image styles.

Properties

protected StreamWrapperManagerInterface $streamWrapperManager

The stream wrapper manager service.

Methods

__construct(StreamWrapperManagerInterface $stream_wrapper_manager)

Constructs a new ImageStyleRoutes object.

static 
create(ContainerInterface $container)

Instantiates a new instance of this class.

Route[]
routes()

Returns an array of route objects.

Details

__construct(StreamWrapperManagerInterface $stream_wrapper_manager)

Constructs a new ImageStyleRoutes object.

Parameters

StreamWrapperManagerInterface $stream_wrapper_manager

The stream wrapper manager service.

static create(ContainerInterface $container)

Instantiates a new instance of this class.

This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

Parameters

ContainerInterface $container

The service container this instance should use.

Route[] routes()

Returns an array of route objects.

Return Value

Route[]

An array of route objects.