public function isHome()
    {
        $config = $this->app['config'];
        $homepage = $config->get('theme/homepage') ?: $config->get('general/homepage');
        $uriID = $this->contenttype['singular_slug'] . '/' . $this->get('id');
        $uriSlug = $this->contenttype['singular_slug'] . '/' . $this->get('slug');

        return $uriID === $homepage || $uriSlug === $homepage;
    }
public function isHome()
    {
        $config = $this->app['config'];
        $homepage = $config->get('theme/homepage') ?: $config->get('general/homepage');
        $uriID = $this->contenttype['singular_slug'] . '/' . $this->get('id');
        $uriSlug = $this->contenttype['singular_slug'] . '/' . $this->get('slug');

        return $uriID === $homepage || $uriSlug === $homepage;
    }
public function isHome ( ) { $ config = $ this -> app [ 'config' ] ; $ homepage = $ config -> get ( 'theme/homepage' ) ? : $ config -> get ( 'general/homepage' ) ; $ uriID = $ this -> contenttype [ 'singular_slug' ] . '/' . $ this -> get ( 'id' ) ; $ uriSlug = $ this -> contenttype [ 'singular_slug' ] . '/' . $ this -> get ( 'slug' ) ; return $ uriID === $ homepage || $ uriSlug === $ homepage ; }
Checks if the current record is set as the homepage.

@return bool
Checks if the current record is set as the homepage .