File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
src/contracts/UniversalDiscovery Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,28 @@ public function getLocationGridViewData(
83
83
): array ;
84
84
85
85
/**
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{
89
108
* location: \Ibexa\Contracts\Core\Repository\Values\Content\Location,
90
109
* permissions: array{
91
110
* create: array{
You can’t perform that action at this time.
0 commit comments