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
@@ -38,7 +38,7 @@ Next, we're going to write the actual object implementing the Interface from abo
38
38
39
39
**Important:** PresentationObject are ValueObjects. In that they are immutable and can only consist of scalar properties, other value objects or arrays of the former two.
40
40
41
-
<small>*`EXAMPLE: PresentationObject`*<small>
41
+
<small>*`EXAMPLE: PresentationObject`*</small>
42
42
43
43
```php
44
44
<?php declare(strict_types=1);
@@ -107,7 +107,7 @@ The first difference to `Neos.Fusion:Component` is the mandatory `@presentationO
107
107
108
108
The second difference is, that besides the usual `props`-Context, your renderer can now also access the special `presentationObject`-Context, which holds our verified data.
Copy file name to clipboardExpand all lines: Documentation/02_PresentationObjectFactories.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ In this tutorial, we're going to write a PresentationObject factory for the imag
18
18
19
19
PresentationObject factories are co-located with their respective PresentationObjects. It's recommended to create factory methods with a speaking name prefixed with `for*` or `from*` to describe their use-case. When your code base grows, the factory will act like an index showing you all the different places in which the respective component is used.
@@ -55,7 +55,7 @@ final class ImageFactory extends AbstractComponentPresentationObjectFactory
55
55
56
56
Each factory that extends `AbstractComponentPresentationObjectFactory` automatically implements the `Neos\Eel\ProtectedContextAwareInterface` and can be used as an Eel helper. To make our factory available in Fusion, we need to register it in the Settings:
@@ -70,7 +70,7 @@ Neos uses the `Neos.Neos:ContentCase` to map nodes to rendering prototypes. For
70
70
71
71
From here, we just need to extend `Neos.Neos:ContentComponent` and provide our PresentationObject component `Vendor.Site:Component.Image` as the renderer. As the `presentationObject` we pass the result of the `forImageNode`-method of our newly registered `ImageFactory`.
0 commit comments