diff --git a/resources/fileTemplates/code/Magento Plugin After Method.html b/resources/fileTemplates/code/Magento Plugin After Method.html deleted file mode 100644 index 7879e1ce9..000000000 --- a/resources/fileTemplates/code/Magento Plugin After Method.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/fileTemplates/code/Magento Plugin After Method.php.html b/resources/fileTemplates/code/Magento Plugin After Method.php.html new file mode 100644 index 000000000..441ec06bf --- /dev/null +++ b/resources/fileTemplates/code/Magento Plugin After Method.php.html @@ -0,0 +1,37 @@ + + + + + + +
Magento runs all after methods following the completion of the observed method. + Magento requires these methods have a return value and they must have the same name as the observed method with ‘after’ as the prefix. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Predefined variables will take the following values:
${PARAM_DOC} PHP DocBlock for plugin function
${NAME} Name of the plugin function
${PARAM_LIST} List of plugin function parameters
${RETURN_VARIABLES} Return value for plugin function
+ + diff --git a/resources/fileTemplates/code/Magento Plugin Around Method.html b/resources/fileTemplates/code/Magento Plugin Around Method.html deleted file mode 100644 index 6bfc7988e..000000000 --- a/resources/fileTemplates/code/Magento Plugin Around Method.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/resources/fileTemplates/code/Magento Plugin Around Method.php.html b/resources/fileTemplates/code/Magento Plugin Around Method.php.html new file mode 100644 index 000000000..6fce54b9c --- /dev/null +++ b/resources/fileTemplates/code/Magento Plugin Around Method.php.html @@ -0,0 +1,37 @@ + + + + + + +
Magento runs the code in around methods before and after their observed methods. + Using these methods allow you to override an observed method. Around methods must have the same name as the observed method with ‘around’ as the prefix. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Predefined variables will take the following values:
${PARAM_DOC} PHP DocBlock for plugin function
${NAME} Name of the plugin function
${PARAM_LIST} List of plugin function parameters
${RETURN_VARIABLES} Return value for plugin function
+ + diff --git a/resources/fileTemplates/code/Magento Plugin Before Method.html b/resources/fileTemplates/code/Magento Plugin Before Method.html deleted file mode 100644 index 6bfc7988e..000000000 --- a/resources/fileTemplates/code/Magento Plugin Before Method.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/resources/fileTemplates/code/Magento Plugin Before Method.php.html b/resources/fileTemplates/code/Magento Plugin Before Method.php.html new file mode 100644 index 000000000..d3536bbb7 --- /dev/null +++ b/resources/fileTemplates/code/Magento Plugin Before Method.php.html @@ -0,0 +1,37 @@ + + + + + + +
Magento runs all before methods ahead of the call to an observed method. + These methods must have the same name as the observed method with ‘before’ as the prefix. +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Predefined variables will take the following values:
${PARAM_DOC} PHP DocBlock for plugin function
${NAME} Name of the plugin function
${PARAM_LIST} List of plugin function parameters
${RETURN_VARIABLES} Return value for plugin function
+ +