You are here

public function ImageStyleWarmer::execute in Image Style Warmer 8

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/Action/ImageStyleWarmer.php, line 78

Class

ImageStyleWarmer
An action to warmup image styles.

Namespace

Drupal\image_style_warmer\Plugin\Action

Code

public function execute($entity = NULL) {
  $this->imageStyleWarmer
    ->warmUp($entity);
}