createObjectStateGroupFromData() публичный Метод

Creates ObjectStateGroup object from provided $data.
public createObjectStateGroupFromData ( array $data ) : eZ\Publish\SPI\Persistence\Content\ObjectState\Group
$data array
Результат eZ\Publish\SPI\Persistence\Content\ObjectState\Group
Пример #1
0
 /**
  * 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);
 }