protected function parseContentTypes(array $generalConfig)
    {
        $contentTypes = [];
        $tempContentTypes = $this->parseConfigYaml('contenttypes.yml');
        foreach ($tempContentTypes as $key => $contentType) {
            try {
                $contentType = $this->parseContentType($key, $contentType, $generalConfig);
                $contentTypes[$key] = $contentType;
            } catch (InvalidArgumentException $e) {
                $this->exceptions[] = $e->getMessage();
            }
        }

        return $contentTypes;
    }
protected function parseContentTypes(array $generalConfig)
    {
        $contentTypes = [];
        $tempContentTypes = $this->parseConfigYaml('contenttypes.yml');
        foreach ($tempContentTypes as $key => $contentType) {
            try {
                $contentType = $this->parseContentType($key, $contentType, $generalConfig);
                $contentTypes[$key] = $contentType;
            } catch (InvalidArgumentException $e) {
                $this->exceptions[] = $e->getMessage();
            }
        }

        return $contentTypes;
    }
protected function parseContentTypes ( array $ generalConfig ) { $ contentTypes = [ ] ; $ tempContentTypes = $ this -> parseConfigYaml ( 'contenttypes.yml' ) ; foreach ( $ tempContentTypes as $ key => $ contentType ) { try { $ contentType = $ this -> parseContentType ( $ key , $ contentType , $ generalConfig ) ; $ contentTypes [ $ key ] = $ contentType ; } catch ( InvalidArgumentException $ e ) { $ this -> exceptions [ ] = $ e -> getMessage ( ) ; } } return $ contentTypes ; }
Read and parse the contenttypes.yml configuration file.

@param array $generalConfig

@return array
Read and parse the contenttypes . yml configuration file .