ImageStyleInterface::getPathToken

public ImageStyleInterface::getPathToken($uri)

Generates a token to protect an image style derivative.

This prevents unauthorized generation of an image style derivative, which can be costly both in CPU time and disk space.

Parameters

string $uri: The URI of the original image of this style.

Return value

string An eight-character token which can be used to protect image style derivatives against denial-of-service attacks.

File

core/modules/image/src/ImageStyleInterface.php, line 91

Class

ImageStyleInterface
Provides an interface defining an image style entity.

Namespace

Drupal\image

Code

public function getPathToken($uri);
doc_Drupal
2016-10-29 09:19:56
Comments
Leave a Comment

Please login to continue.