You are here

protected function TinyPngImageHandler::checkConfig in TinyPNG 8

Check if module configured.

Return value

bool Returns TRUE if API key upload method is configured.

1 call to TinyPngImageHandler::checkConfig()
TinyPngImageHandler::shouldHandleEntity in src/TinyPngImageHandler.php
Checks if we should handle entity.

File

src/TinyPngImageHandler.php, line 186

Class

TinyPngImageHandler
Class TinyPngImageHandler.

Namespace

Drupal\tinypng

Code

protected function checkConfig() {
  return !empty($this->config
    ->get('api_key')) && !empty($this->config
    ->get('on_upload'));
}