Returns an array with data about the Group with $identifier.
abstract public loadGroupDataByIdentifier ( integer $identifier ) : array | ||
$identifier | integer | |
return | array |
/** * @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]; }
/** * Returns an array with data about the Group with $identifier. * * @param int $identifier * * @return array */ public function loadGroupDataByIdentifier($identifier) { try { return $this->innerGateway->loadGroupDataByIdentifier($identifier); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }