Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit a75e70e

Browse files
authored
Update FlagFactory construction example
1 parent c09fc76 commit a75e70e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guides/v2.3/extension-dev-guide/factories.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ The example below shows the construction of a `\Magento\Framework\FlagFactory` o
8686
```php
8787
$flag = $this->flagFactory->create([
8888
'data' => ['flag_code' => 'something']
89+
]);
8990
```
9091

9192
The `Flag` class has a `$data` constructor parameter which corresponds to the data key in the `create` array above.

0 commit comments

Comments
 (0)