public function MCrypt::isAvailable in DRD Agent 4.0.x
Same name and namespace in other branches
- 8.3 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\MethodCode
public function isAvailable() : bool {
return function_exists('mcrypt_encrypt');
}