You are here

public function ImageReplaceStorageInterface::add in Image Replace 8

Add an image replacement mapping.

Parameters

string $target_style: The target image style name.

string $target_uri: The uri of the image for which to set a replacement.

string $replacement_uri: The replacement uri to set for the given uri/style combination.

1 method overrides ImageReplaceStorageInterface::add()
ImageReplaceDatabaseStorage::add in src/ImageReplaceDatabaseStorage.php
Add an image replacement mapping.

File

src/ImageReplaceStorageInterface.php, line 34

Class

ImageReplaceStorageInterface
Defines the interface for image_replace storage implementations.

Namespace

Drupal\image_replace

Code

public function add($target_style, $target_uri, $replacement_uri);