Frontend\Core\Language\Language::act PHP Метод

act() публичный статический Метод

Get an action from the language-file
public static act ( string $key, boolean $fallback = true ) : string
$key string The key to get.
$fallback boolean Should we provide a fallback in English?
Результат string
    public static function act($key, $fallback = true)
    {
        return self::getAction($key, $fallback);
    }

Usage Example

Пример #1
0
 /**
  * Get an action from the language-file
  *
  * @param string $key      The key to get.
  * @param bool   $fallback Should we provide a fallback in English?
  *
  * @return string
  */
 public static function act($key, $fallback = true)
 {
     trigger_error('Frontend\\Core\\Engine\\Language is deprecated.
          It has been moved to Frontend\\Core\\Language\\Language', E_USER_DEPRECATED);
     return parent::act($key, $fallback);
 }
All Usage Examples Of Frontend\Core\Language\Language::act