You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -101,69 +102,70 @@ public function getFunctions(): array
101
102
}
102
103
103
104
/**
104
-
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject $content Must be a valid Contentor ContentInfo object.
105
+
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Content|\Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo|\Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface $data Must be a valid Content, ContentInfo, or ContentAwareInterface object.
105
106
* @param string $forcedLanguage Locale we want the content name translation in (e.g. "fre-FR"). Null by default (takes current locale)
106
107
*
107
-
* @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentType When $content is not a valid Contentor ContentInfo object.
108
+
* @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentType When $content is not a valid Content, ContentInfo, or ContentAwareInterface object.
* Gets name of a FieldDefinition name by loading ContentType based on Content/ContentInfo object.
156
+
* Gets name of a FieldDefinition name by loading ContentType based on Content/ContentInfo/ContentAwareInterface object.
155
157
*
156
-
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject $content Must be Contentor ContentInfo object
158
+
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Content|\Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo|\Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface $data Must be Content, ContentInfo, or ContentAwareInterface object
157
159
* @param string $fieldDefIdentifier Identifier for the field we want to get the name from
158
160
* @param string $forcedLanguage Locale we want the content name translation in (e.g. "fre-FR"). Null by default (takes current locale)
159
161
*
160
-
* @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentType When $content is not a valid Content object.
162
+
* @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentType When $content is not a valid Content, ContentInfo, or ContentAwareInterface object.
sprintf('%s or %s or %s', Content::class, ContentInfo::class, ContentAwareInterface::class),
180
+
$data
181
+
);
176
182
}
177
183
178
184
/**
179
-
* Gets name of a FieldDefinition description by loading ContentType based on Content/ContentInfo object.
185
+
* Gets name of a FieldDefinition description by loading ContentType based on Content/ContentInfo/ContentAwareInterface object.
180
186
*
181
-
* @param \Ibexa\Contracts\Core\Repository\Values\ValueObject $content Must be Contentor ContentInfo object
187
+
* @param \Ibexa\Contracts\Core\Repository\Values\Content\Content|\Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo|\Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface $data Must be Content, ContentInfo, or ContentAwareInterface object
182
188
* @param string $fieldDefIdentifier Identifier for the field we want to get the name from
183
189
* @param string $forcedLanguage Locale we want the content name translation in (e.g. "fre-FR"). Null by default (takes current locale)
184
190
*
185
-
* @throws \Ibexa\Core\Base\Exceptions\InvalidArgumentType When $content is not a valid Content object.
0 commit comments