public function lastModified($var = null)
    {
        if ($var !== null) {
            $this->last_modified = $var;
        }
        if (!isset($this->last_modified)) {
            $this->last_modified = (bool)Grav::instance()['config']->get('system.pages.last_modified');
        }

        return $this->last_modified;
    }
public function lastModified($var = null)
    {
        if ($var !== null) {
            $this->last_modified = $var;
        }
        if (!isset($this->last_modified)) {
            $this->last_modified = (bool)Grav::instance()['config']->get('system.pages.last_modified');
        }

        return $this->last_modified;
    }
public function lastModified ( $ var = null ) { if ( $ var !== null ) { $ this -> last_modified = $ var ; } if ( ! isset ( $ this -> last_modified ) ) { $ this -> last_modified = ( bool ) Grav :: instance ( ) [ 'config' ] -> get ( 'system.pages.last_modified' ) ; } return $ this -> last_modified ; }
Gets and sets the option to show the last_modified header for the page.

@param  bool $var show last_modified header

@return bool      show last_modified header
Gets and sets the option to show the last_modified header for the page .