You are here

public function MCrypt::isAvailable in DRD Agent 8.3

Same name and namespace in other branches
  1. 4.0.x src/Crypt/Method/MCrypt.php \Drupal\drd_agent\Crypt\Method\MCrypt::isAvailable()

Find out if the crypt method is available.

Return value

bool TRUE if method is available.

Overrides BaseMethodInterface::isAvailable

File

src/Crypt/Method/MCrypt.php, line 58

Class

MCrypt
Provides MCrypt encryption functionality.

Namespace

Drupal\drd_agent\Crypt\Method

Code

public function isAvailable() : bool {
  return function_exists('mcrypt_encrypt');
}