public function newUserGroupCreateStruct($mainLanguageCode, $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $this->settings['userGroupClassID']
            );
        }

        return new UserGroupCreateStruct(
            array(
                'contentType' => $contentType,
                'mainLanguageCode' => $mainLanguageCode,
                'fields' => array(),
            )
        );
    }
public function newUserGroupCreateStruct($mainLanguageCode, $contentType = null)
    {
        if ($contentType === null) {
            $contentType = $this->repository->getContentTypeService()->loadContentType(
                $this->settings['userGroupClassID']
            );
        }

        return new UserGroupCreateStruct(
            array(
                'contentType' => $contentType,
                'mainLanguageCode' => $mainLanguageCode,
                'fields' => array(),
            )
        );
    }
public function newUserGroupCreateStruct ( $ mainLanguageCode , $ contentType = null ) { if ( $ contentType === null ) { $ contentType = $ this -> repository -> getContentTypeService ( ) -> loadContentType ( $ this -> settings [ 'userGroupClassID' ] ) ; } return new UserGroupCreateStruct ( array ( 'contentType' => $ contentType , 'mainLanguageCode' => $ mainLanguageCode , 'fields' => array ( ) , ) ) ; }
Instantiate a user group create class.

@param string $mainLanguageCode The main language for the underlying content object
@param null|\eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType 5.x the content type for the underlying content object. In 4.x it is ignored and taken from the configuration

@return \eZ\Publish\API\Repository\Values\User\UserGroupCreateStruct
Instantiate a user group create class .