Skip to content

Commit f080106

Browse files
authored
Merge pull request magento#6968 from vasilii-b/event-observers-warning-about-unique-name
"Events and observers" page: Added warning about overriding observer by using existing name.
2 parents f887fc7 + 63a3c4a commit f080106

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/guides/v2.3/extension-dev-guide/events-and-observers.md

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ The `observer` [xml](https://glossary.magento.com/xml) element has the following
127127
* `disabled` - Determines whether this observer is active or not. Default value is false.
128128
* `shared` - Determines the [lifestyle]({{ page.baseurl }}/extension-dev-guide/build/di-xml-file.html#object-lifestyle-configuration) of the class. Default is `true`.
129129

130+
{: .bs-callout .bs-callout-warning}
131+
The observer name must be unique, or an override will occur.
132+
130133
Below is an example of how to assign observers to watch certain events:
131134

132135
```xml

0 commit comments

Comments
 (0)