Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c9dc94b

Browse filesBrowse files
committed
Merge branch '7.2' into 7.3
* 7.2: Minor fix Update custom_normalizer.rst
2 parents c10ae18 + 77632c6 commit c9dc94b
Copy full SHA for c9dc94b

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎serializer/custom_normalizer.rst

Copy file name to clipboardExpand all lines: serializer/custom_normalizer.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ normalization process::
3636
) {
3737
}
3838

39-
public function normalize($topic, ?string $format = null, array $context = []): array
39+
public function normalize(mixed $object, ?string $format = null, array $context = []): array
4040
{
41-
$data = $this->normalizer->normalize($topic, $format, $context);
41+
$data = $this->normalizer->normalize($object, $format, $context);
4242

4343
// Here, add, edit, or delete some data:
4444
$data['href']['self'] = $this->router->generate('topic_show', [
45-
'id' => $topic->getId(),
45+
'id' => $object->getId(),
4646
], UrlGeneratorInterface::ABSOLUTE_URL);
4747

4848
return $data;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.