Skip to content

Commit 8fee312

Browse files
authored
Update Provider.php
1 parent d7f7f00 commit 8fee312

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

src/contracts/UniversalDiscovery/Provider.php

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,28 @@ public function getLocationGridViewData(
8383
): array;
8484

8585
/**
86-
* @param list<string> $locationIds
87-
*
88-
* @return array<array{
86+
* Get list of (@see \Ibexa\Contracts\Core\Repository\Values\Content\Location locations} with their permissions.
87+
*
88+
* Returns a indexed array of hashes with the following structure:
89+
* ```
90+
* [
91+
* [
92+
* 'location' => (@see \Ibexa\Contracts\Core\Repository\Values\Content\Location],
93+
* 'permissions' => [
94+
* 'create' => [
95+
* 'hasAccess' => bool true/false,
96+
* 'restrictedContentTypeIds' => [1, 2, 3]
97+
* ],
98+
* 'edit' => [],
99+
* ],
100+
* ],
101+
* ]
102+
* ```
103+
*
104+
* @param array<int, string> $locationIds
105+
*
106+
* @return array<int, array> An array of assiative arrays with "location" and "permissions" keys
107+
* @phpstan-return array<array{
89108
* location: \Ibexa\Contracts\Core\Repository\Values\Content\Location,
90109
* permissions: array{
91110
* create: array{

0 commit comments

Comments
 (0)