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

loadObjectStateDataByIdentifier() abstract public method

Loads data for an object state by identifier.
abstract public loadObjectStateDataByIdentifier ( string $identifier, mixed $groupId ) : array
$identifier string
$groupId mixed
return array
    public abstract function loadObjectStateDataByIdentifier($identifier, $groupId);

Usage Example

 /**
  * Loads data for an object state by identifier.
  *
  * @param string $identifier
  * @param mixed $groupId
  *
  * @return array
  */
 public function loadObjectStateDataByIdentifier($identifier, $groupId)
 {
     try {
         return $this->innerGateway->loadObjectStateDataByIdentifier($identifier, $groupId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::loadObjectStateDataByIdentifier