lib/Backend/EzPublishBackend.php
private function getContentTypeIds(array $contentTypeIdentifiers): array
    {
        $idList = [];

        foreach ($contentTypeIdentifiers as $identifier) {
            try {
                $contentType = $this->contentTypeHandler->loadByIdentifier($identifier);
                $idList[] = $contentType->id;
            } catch (APINotFoundException $e) {
                continue;
            }
        }

        return $idList;
    }
private function getContentTypeIds(array $contentTypeIdentifiers): array
    {
        $idList = [];

        foreach ($contentTypeIdentifiers as $identifier) {
            try {
                $contentType = $this->contentTypeHandler->loadByIdentifier($identifier);
                $idList[] = $contentType->id;
            } catch (APINotFoundException $e) {
                continue;
            }
        }

        return $idList;
    }
private function getContentTypeIds ( array $ contentTypeIdentifiers ) : array { $ idList = [ ] ; foreach ( $ contentTypeIdentifiers as $ identifier ) { try { $ contentType = $ this -> contentTypeHandler -> loadByIdentifier ( $ identifier ) ; $ idList [ ] = $ contentType -> id ; } catch ( APINotFoundException $ e ) { continue ; } } return $ idList ; }
Returns content type IDs for all existing content types.

@return int[]
Returns content type IDs for all existing content types .