Bolt\Storage\Query\SearchConfig::isInvisible PHP Method

isInvisible() protected method

This is based on ContentType options.
protected isInvisible ( string $contentType ) : boolean
$contentType string
return boolean
    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;
    }