From c2902edaa04b08461416ab0970e3b1f9e040c1f0 Mon Sep 17 00:00:00 2001 From: nnatter Date: Tue, 1 Jun 2021 13:55:26 +0200 Subject: [PATCH] Fix namespaces in documentation about extending view document (#577) --- Resources/doc/article-view-document.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Resources/doc/article-view-document.md b/Resources/doc/article-view-document.md index 469dde89..89528fde 100644 --- a/Resources/doc/article-view-document.md +++ b/Resources/doc/article-view-document.md @@ -91,7 +91,9 @@ return [ ```php getViewDocument(); $data = $document->getStructure()->toArray(); - if (!array_key_exists('article', $data)) { + if (!array_key_exists('myCustomProperty', $data)) { return; } - $viewDocument->article = $data['article']; + $viewDocument->myCustomProperty = $data['myCustomProperty']; } } ```