Converter/ContentTypesHelper.php
public function getContentTypesByGroup($identifier)
    {
        $contentTypesCollection = array();

        if ($contentTypeGroupIdentifier = $identifier) {
            $contentTypeGroup = $this->contentTypeService->loadContentTypeGroupByIdentifier($contentTypeGroupIdentifier);
            $contentTypesCollection = $this->contentTypeService->loadContentTypes($contentTypeGroup);
        }

        return $contentTypesCollection;
    }
public function getContentTypesByGroup($identifier)
    {
        $contentTypesCollection = array();

        if ($contentTypeGroupIdentifier = $identifier) {
            $contentTypeGroup = $this->contentTypeService->loadContentTypeGroupByIdentifier($contentTypeGroupIdentifier);
            $contentTypesCollection = $this->contentTypeService->loadContentTypes($contentTypeGroup);
        }

        return $contentTypesCollection;
    }
public function getContentTypesByGroup ( $ identifier ) { $ contentTypesCollection = array ( ) ; if ( $ contentTypeGroupIdentifier = $ identifier ) { $ contentTypeGroup = $ this -> contentTypeService -> loadContentTypeGroupByIdentifier ( $ contentTypeGroupIdentifier ) ; $ contentTypesCollection = $ this -> contentTypeService -> loadContentTypes ( $ contentTypeGroup ) ; } return $ contentTypesCollection ; }
Returns ContentTypes array by ContentType group.

@param string $identifier

@return \eZ\Publish\API\Repository\Values\ContentType\ContentType[]
Returns ContentTypes array by ContentType group .