eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::loadGroupDataByIdentifier PHP Method

loadGroupDataByIdentifier() abstract public method

Returns an array with data about the Group with $identifier.
abstract public loadGroupDataByIdentifier ( integer $identifier ) : array
$identifier integer
return array
    public abstract function loadGroupDataByIdentifier($identifier);

Usage Example

 /**
  * @param string $identifier
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If type group with $identifier is not found
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Type\Group
  */
 public function loadGroupByIdentifier($identifier)
 {
     $groups = $this->mapper->extractGroupsFromRows($this->contentTypeGateway->loadGroupDataByIdentifier($identifier));
     if (count($groups) !== 1) {
         throw new Exception\TypeGroupNotFound($identifier);
     }
     return $groups[0];
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway::loadGroupDataByIdentifier