protected function createContentTypeGroup() { $contentTypeService = $this->repository->getContentTypeService(); $groupCreate = $contentTypeService->newContentTypeGroupCreateStruct('new-group'); $groupCreate->creatorId = $this->repository->getCurrentUserReference()->getUserId(); $groupCreate->creationDate = new \DateTime(); // @todo uncomment when support for multilingual names and descriptions is added EZP-24776 //$groupCreate->mainLanguageCode = 'eng-US'; //$groupCreate->names = array( 'eng-US' => 'Name' ); //$groupCreate->descriptions = array( 'eng-US' => 'Description' ); return $contentTypeService->createContentTypeGroup($groupCreate); }