lithium\g11n\multibyte\adapter\Intl::enabled PHP Method

enabled() public static method

Determines if this adapter is enabled by checking if the intl extension is loaded.
public static enabled ( ) : boolean
return boolean Returns `true` if enabled, otherwise `false`.
    public static function enabled()
    {
        return extension_loaded('intl');
    }

Usage Example

Example #1
0
 public function skip()
 {
     $this->skipIf(!Intl::enabled(), 'The `Intl` adapter is not enabled.');
 }