eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler::deleteGroup PHP Méthode

deleteGroup() public méthode

Deletes a object state group including all states and links to content.
public deleteGroup ( mixed $groupId )
$groupId mixed
    public function deleteGroup($groupId)
    {
        $objectStates = $this->loadObjectStates($groupId);
        foreach ($objectStates as $objectState) {
            $this->objectStateGateway->deleteObjectStateLinks($objectState->id);
            $this->objectStateGateway->deleteObjectState($objectState->id);
        }
        $this->objectStateGateway->deleteObjectStateGroup($groupId);
    }