-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backend controller * events * menu * Routes Updated README
- Loading branch information
1 parent
47017b7
commit 52813d5
Showing
8 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php declare(strict_types=1); | ||
#parse("M2-PHP-File-Header") | ||
|
||
#if (${NAMESPACE}) | ||
namespace ${NAMESPACE}; | ||
#end | ||
|
||
use Magento\Backend\App\AbstractAction; | ||
|
||
class ${NAME} extends AbstractAction | ||
{ | ||
/** | ||
* | ||
*/ | ||
public function execute() | ||
{ | ||
#[[$END$]]# | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0"?> | ||
#parse("M2-XML-File-Header") | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> | ||
#[[$END$]]# | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0"?> | ||
#parse("M2-XML-File-Header") | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd"> | ||
<menu> | ||
#[[$END$]]# | ||
</menu> | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0"?> | ||
#parse("M2-XML-File-Header") | ||
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd"> | ||
#[[$END$]]# | ||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<templateSet group="M2-events"> | ||
<template name="m2eventobserver" value="<event name="$eventName$"> <observer name="$observerName$" instance="$observerClass$"/> </event> $END$" description="create an observer on event" toReformat="false" toShortenFQNames="true"> | ||
<variable name="eventName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="observerName" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="observerClass" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="XML_TEXT" value="true" /> | ||
</context> | ||
</template> | ||
</templateSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<templateSet group="M2-menu"> | ||
<template name="m2menuadd" value="<add id="$menuId$" title="$title$" translate="title" module="$module$" sortOrder="$order$" parent="$parentMenuId$" action="$controllerPath$" resource="$resourceId$"/>" description="Add new menu" toReformat="false" toShortenFQNames="true"> | ||
<variable name="menuId" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="title" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="module" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="order" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="parentMenuId" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="controllerPath" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<variable name="resourceId" expression="" defaultValue="" alwaysStopAt="true" /> | ||
<context> | ||
<option name="XML_TEXT" value="true" /> | ||
</context> | ||
</template> | ||
</templateSet> |