protected function getContentTypesHash()
    {
        $contentTypeHash = [];
        foreach ($this->contentTypeService->loadContentTypeGroups() as $contentTypeGroup) {
            foreach ($this->contentTypeService->loadContentTypes($contentTypeGroup) as $contentType) {
                $contentTypeHash[$contentType->getName()] = $contentType->identifier;
            }
        }
        ksort($contentTypeHash);

        return $contentTypeHash;
    }
protected function getContentTypesHash()
    {
        $contentTypeHash = [];
        foreach ($this->contentTypeService->loadContentTypeGroups() as $contentTypeGroup) {
            foreach ($this->contentTypeService->loadContentTypes($contentTypeGroup) as $contentType) {
                $contentTypeHash[$contentType->getName()] = $contentType->identifier;
            }
        }
        ksort($contentTypeHash);

        return $contentTypeHash;
    }
protected function getContentTypesHash ( ) { $ contentTypeHash = [ ] ; foreach ( $ this -> contentTypeService -> loadContentTypeGroups ( ) as $ contentTypeGroup ) { foreach ( $ this -> contentTypeService -> loadContentTypes ( $ contentTypeGroup ) as $ contentType ) { $ contentTypeHash [ $ contentType -> getName ( ) ] = $ contentType -> identifier ; } } ksort ( $ contentTypeHash ) ; return $ contentTypeHash ; }
Fill a hash with all content types and their ids.

@return array
Fill a hash with all content types and their ids .