public function id($var = null)
    {
        if ($var !== null) {
            // store unique per language
            $active_lang = Grav::instance()['language']->getLanguage() ?: '';
            $id = $active_lang . $var;
            $this->id = $id;
        }

        return $this->id;
    }
public function id($var = null)
    {
        if ($var !== null) {
            // store unique per language
            $active_lang = Grav::instance()['language']->getLanguage() ?: '';
            $id = $active_lang . $var;
            $this->id = $id;
        }

        return $this->id;
    }
public function id ( $ var = null ) { if ( $ var !== null ) { // store unique per language $ active_lang = Grav :: instance ( ) [ 'language' ] -> getLanguage ( ) ? : '' ; $ id = $ active_lang . $ var ; $ this -> id = $ id ; } return $ this -> id ; }
Gets and sets the identifier for this Page object.

@param  string $var the identifier

@return string      the identifier
Gets and sets the identifier for this Page object .