eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Handler::createGroup PHP Method

createGroup() public method

Creates a new object state group.
public createGroup ( eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct $input ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$input eZ\Publish\SPI\Persistence\Content\ObjectState\InputStruct
return eZ\Publish\SPI\Persistence\Content\ObjectState\Group
    public function createGroup(InputStruct $input)
    {
        $objectStateGroup = $this->objectStateMapper->createObjectStateGroupFromInputStruct($input);
        $this->objectStateGateway->insertObjectStateGroup($objectStateGroup);
        return $objectStateGroup;
    }