protected function isInvisible($contentType)
    {
        $info = $this->config->get('contenttypes/' . $contentType);
        if ($info) {
            if (array_key_exists('viewless', $info) && $info['viewless'] === true) {
                return true;
            }
            if (array_key_exists('searchable', $info) && $info['searchable'] === false) {
                return true;
            }
        }

        return false;
    }
protected function isInvisible($contentType)
    {
        $info = $this->config->get('contenttypes/' . $contentType);
        if ($info) {
            if (array_key_exists('viewless', $info) && $info['viewless'] === true) {
                return true;
            }
            if (array_key_exists('searchable', $info) && $info['searchable'] === false) {
                return true;
            }
        }

        return false;
    }
protected function isInvisible ( $ contentType ) { $ info = $ this -> config -> get ( 'contenttypes/' . $ contentType ) ; if ( $ info ) { if ( array_key_exists ( 'viewless' , $ info ) && $ info [ 'viewless' ] === true ) { return true ; } if ( array_key_exists ( 'searchable' , $ info ) && $ info [ 'searchable' ] === false ) { return true ; } } return false ; }
Does some checks to see whether a ContentType should appear in search results.
This is based on ContentType options.

@param string $contentType

@return bool
Does some checks to see whether a ContentType should appear in search results . This is based on ContentType options .