File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/com/magento/idea/magento2plugin Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ private boolean checkIsEventDispatchMethod(final MethodReference element) {
139
139
140
140
return Observer .INTERFACE .equals (fqn )
141
141
|| Observer .IMPLEMENTATION .equals (fqn )
142
- || Observer .ENTITY_IMPL .equals (fqn );
142
+ || Observer .ENTITY_IMPL .equals (fqn )
143
+ || Observer .STAGING_IMPL .equals (fqn );
143
144
}
144
145
145
146
private boolean checkIsElementStringLiteral (final @ NotNull PsiElement element ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public class Observer implements ModuleFileInterface {
14
14
public static final String INTERFACE = "Magento\\ Framework\\ Event\\ ManagerInterface" ;
15
15
public static final String IMPLEMENTATION = "Magento\\ Framework\\ Event\\ Manager" ;
16
16
public static final String ENTITY_IMPL = "Magento\\ Framework\\ EntityManager\\ EventManager" ;
17
+ public static final String STAGING_IMPL = "Magento\\ Staging\\ Model\\ Event\\ Manager" ;
17
18
public static final String DISPATCH_METHOD = "dispatch" ;
18
19
public static final String NAME_ATTRIBUTE = "name" ;
19
20
public static final String OBSERVER_EXECUTE_TEMPLATE_NAME = "Magento Observer Execute Method" ;
You can’t perform that action at this time.
0 commit comments