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
if (!\in_array($sortOrder, [SortOrder::ASC, SortOrder::DESC], true)) {
266
267
thrownew \InvalidArgumentException(sprintf('The sort order can be only "%s" or "%s", "%s" given.', SortOrder::ASC, SortOrder::DESC, $sortOrder));
267
268
}
268
269
269
270
if (!\is_string($sortField)) {
270
271
thrownew \InvalidArgumentException(sprintf('The keys of the array that defines the default sort must be strings with the field names, but the given "%s" value is a "%s".', $sortField, \gettype($sortField)));
@@ -78,7 +79,10 @@ private function validateLayoutConfiguration(FieldCollection $fields): void
78
79
}
79
80
80
81
if ($theFirstFieldWhichIsATabOrColumn->isFormColumn() && $fieldDto->isFormTab()) {
81
-
thrownew \InvalidArgumentException(sprintf('When using form columns, you can\'t define tabs inside columns (but you can define columns inside tabs). Move the tab "%s" outside any column.', $fieldDto->getLabel()));
thrownew \InvalidArgumentException(sprintf('When using form columns, you can\'t define tabs inside columns (but you can define columns inside tabs). Move the tab "%s" outside any column.', $labelAsString));
82
86
}
83
87
}
84
88
}
@@ -181,7 +185,13 @@ private function linearizeLayoutConfiguration(FieldCollection $fields): void
if (null === $entityFqcn && null === $crudControllerFqcn) {
137
-
thrownew \RuntimeException(sprintf('The CRUD menu item with label "%s" must define either the entity FQCN (using the third constructor argument) or the CRUD Controller FQCN (using the "setController()" method).', $menuItemDto->getLabel()));
thrownew \RuntimeException(sprintf('The CRUD menu item with label "%s" must define either the entity FQCN (using the third constructor argument) or the CRUD Controller FQCN (using the "setController()" method).', $labelAsString));
0 commit comments