private function getNormalisedContentTypes(Config $config)
    {
        $normalised = [];
        $contentTypes = $config->get('contenttypes');
        foreach ($contentTypes as $contentType) {
            $normalised[$contentType['tablename']] = $contentType;
        }

        return $normalised;
    }
private function getNormalisedContentTypes(Config $config)
    {
        $normalised = [];
        $contentTypes = $config->get('contenttypes');
        foreach ($contentTypes as $contentType) {
            $normalised[$contentType['tablename']] = $contentType;
        }

        return $normalised;
    }
private function getNormalisedContentTypes ( Config $ config ) { $ normalised = [ ] ; $ contentTypes = $ config -> get ( 'contenttypes' ) ; foreach ( $ contentTypes as $ contentType ) { $ normalised [ $ contentType [ 'tablename' ] ] = $ contentType ; } return $ normalised ; }
Return an array of ContentTypes with the table name is the key.

@param Config $config

@return array
Return an array of ContentTypes with the table name is the key .