eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::loadObjectStateGroupDataByIdentifier PHP Method

loadObjectStateGroupDataByIdentifier() abstract public method

Loads data for an object state group by identifier.
abstract public loadObjectStateGroupDataByIdentifier ( string $identifier ) : array
$identifier string
return array
    public abstract function loadObjectStateGroupDataByIdentifier($identifier);

Usage Example

 /**
  * Loads a object state group by identifier
  *
  * @param string $identifier
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if the group was not found
  *
  * @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);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::loadObjectStateGroupDataByIdentifier