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

loadGroupByIdentifier() public method

Loads a object state group by identifier.
public loadGroupByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$identifier string
return eZ\Publish\SPI\Persistence\Content\ObjectState\Group
    public function loadGroupByIdentifier($identifier)
    {
        $data = $this->objectStateGateway->loadObjectStateGroupDataByIdentifier($identifier);
        if (empty($data)) {
            throw new NotFoundException('ObjectStateGroup', $identifier);
        }
        return $this->objectStateMapper->createObjectStateGroupFromData($data);
    }