public function TinyPngInterface::setApiKey in TinyPNG 8
Set TinyPNG API key.
Parameters
string $key: TinyPNG API key.
bool $reset: Force to update previous API key.
Return value
$this Current instance.
1 method overrides TinyPngInterface::setApiKey()
- TinyPng::setApiKey in src/
TinyPng.php - Set TinyPNG API key.
File
- src/
TinyPngInterface.php, line 23
Class
- TinyPngInterface
- Interface TinyPngInterface.
Namespace
Drupal\tinypngCode
public function setApiKey($key = NULL, $reset = FALSE);