Back to PhocacartLanguage class

Method __construct

public
__construct
()
Set new language and return the default so it can be set back
Parameters
  • $lang

Method __construct - Source code

/**
 * Set new language and return the default so it can be set back
 * @param $lang
 */
public function __construct()
{
    $language = Factory::getLanguage();
    $this->primeLangTag = $language->getTag();
    $this->primeLangPaths = $language->getPaths();
}