class ImageCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

flush($style_names, $options = ['all' => false])

Flush all derived images for a given style.

interactFlush($input, $output)

No description

initFlush(InputInterface $input, AnnotationData $annotationData)

No description

derive($style_name, $source)

Create an image derivative.

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

flush($style_names, $options = ['all' => false])

Flush all derived images for a given style.

Parameters

$style_names
$options

interactFlush($input, $output)

Parameters

$input
$output

initFlush(InputInterface $input, AnnotationData $annotationData)

Parameters

InputInterface $input
AnnotationData $annotationData

derive($style_name, $source)

Create an image derivative.

Parameters

$style_name An image style machine name.
$source Path to a source image. Optionally prepend stream wrapper scheme.