Skip to content

Commit fc95fad

Browse files
authored
Update entityMapping contrib example (#775)
Update README.md
1 parent e4d8d6f commit fc95fad

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,12 @@ For example, the Paragraphs module could have the following `entity_mapping.neon
206206

207207
```neon
208208
parameters:
209-
entityMapping:
210-
paragraph:
211-
class: Drupal\paragraphs\Entity\Paragraph
212-
paragraphs_type:
213-
class: Drupal\paragraphs\Entity\ParagraphsType
209+
drupal:
210+
entityMapping:
211+
paragraph:
212+
class: Drupal\paragraphs\Entity\Paragraph
213+
paragraphs_type:
214+
class: Drupal\paragraphs\Entity\ParagraphsType
214215
```
215216

216217
Then in the `composer.json` for Paragraphs, the `entity_mapping.neon` would be provided as a PHPStan include

0 commit comments

Comments
 (0)