File tree Expand file tree Collapse file tree 2 files changed +49
-5
lines changed
resources/fileTemplates/internal Expand file tree Collapse file tree 2 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,13 @@ use Magento\Framework\Event\ObserverInterface;
1010use Magento\Framework\Event\Observer;
1111
1212class ${NAME} implements ObserverInterface {
13- }
13+
14+ /**
15+ * @param Observer $observer
16+ * @return void
17+ */
18+ public function execute(Observer $observer)
19+ {
20+
21+ }
22+ }
Original file line number Diff line number Diff line change 11<!--
2- /*
2+ /**
33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
66-->
7- < html >
8- < body >
9- </ body >
7+ < html lang ="en ">
8+ < body >
9+ < table width ="100% " border ="0 " cellpadding ="5 " cellspacing ="0 " style ="border-collapse: collapse ">
10+ < tr >
11+ < td >
12+ < font face ="verdana " size ="-1 "> Observers are a certain type of Magento class that can influence
13+ general behavior, performance, or change business logic. Observers are executed whenever the
14+ event they are configured to watch is dispatched by the event manager.
15+ < a href ="https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html ">
16+ Read more</ a > about observers.
17+ </ font >
18+ </ td >
19+ </ tr >
20+ < tr >
21+ < td >
22+ < font face ="verdana " size ="-1 "> Check out the
23+ < a href ="https://devdocs.magento.com/guides/v2.3/ext-best-practices/extension-coding/observers-bp.html ">
24+ Observers best practices</ a > to have a clean and professional implementation.</ font >
25+ </ td >
26+ </ tr >
27+ </ table >
28+
29+ < table width ="100% " border ="0 " cellpadding ="5 " cellspacing ="0 " style ="border-collapse: collapse ">
30+ < tr >
31+ < td colspan ="3 "> < font face ="verdana " size ="-1 "> Template's variables:</ font > </ td >
32+ </ tr >
33+ < tr >
34+ < td valign ="top "> < nobr > < font face ="verdana " size ="-2 "> < b > ${NAMESPACE}</ b > </ font > </ nobr > </ td >
35+ < td width ="10 "> </ td >
36+ < td width ="100% " valign ="top "> < font face ="verdana " size ="-1 "> Created PHP observer class namespace.</ font > </ td >
37+ </ tr >
38+ < tr >
39+ < td valign ="top "> < nobr > < font face ="verdana " size ="-2 "> < b > ${NAME}</ b > </ font > </ nobr > </ td >
40+ < td width ="10 "> </ td >
41+ < td width ="100% " valign ="top "> < font face ="verdana " size ="-1 "> PHP class for the observer name.</ font > </ td >
42+ </ tr >
43+ </ table >
44+ </ body >
1045</ html >
You can’t perform that action at this time.
0 commit comments