eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::deleteGroup PHP Method

deleteGroup() abstract public method

Deletes the Group with the given $groupId.
abstract public deleteGroup ( integer $groupId )
$groupId integer
    public abstract function deleteGroup($groupId);

Usage Example

 /**
  * @param mixed $groupId
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException If type group contains types
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If type group with id is not found
  */
 public function deleteGroup($groupId)
 {
     if ($this->contentTypeGateway->countTypesInGroup($groupId) !== 0) {
         throw new Exception\GroupNotEmpty($groupId);
     }
     $this->contentTypeGateway->deleteGroup($groupId);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::deleteGroup