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

getConfig() public method

Get the config of all fields for a given content type.
public getConfig ( string $contentType ) : array | false
$contentType string
return array | false
    public function getConfig($contentType)
    {
        if (array_key_exists($contentType, $this->searchableTypes)) {
            return $this->searchableTypes[$contentType];
        }
        return false;
    }

Usage Example

Beispiel #1
0
 public function testViewless()
 {
     $app = $this->getApp();
     $app['config']->set('contenttypes/pages/viewless', true);
     $search = new SearchConfig($app['config']);
     $this->assertFalse($search->getConfig('pages'));
 }
All Usage Examples Of Bolt\Storage\Query\SearchConfig::getConfig