File tree Expand file tree Collapse file tree 4 files changed +27
-1
lines changed
resources/fileTemplates/internal
testData/actions/generation/generator
NewActionEntityGenerator/generateNewActionEntityFile
UiComponentGridXmlGenerator
generateUiGridForBaseArea
generateUiGridWithoutToolbar Expand file tree Collapse file tree 4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 7
7
</item >
8
8
</argument >
9
9
<settings >
10
+ <buttons >
11
+ <button name =" add" >
12
+ <url path =" */*/new" />
13
+ <class >primary</class >
14
+ <label translate =" true" >Add New</label >
15
+ </button >
16
+ </buttons >
10
17
<spinner >${NAME}_columns</spinner >
11
18
<deps >
12
19
<dep >${NAME}.${NAME}_data_source</dep >
Original file line number Diff line number Diff line change 1
1
<?php
2
+
2
3
namespace Foo \Bar \Controller \Adminhtml \Company ;
4
+
3
5
use Magento \Backend \App \Action ;
4
6
use Magento \Backend \Model \View \Result \Page ;
5
7
use Magento \Framework \App \Action \HttpGetActionInterface ;
6
8
use Magento \Framework \Controller \ResultFactory ;
7
9
use Magento \Framework \Controller \ResultInterface ;
10
+
8
11
/**
9
12
* New action Company controller.
10
13
*/
@@ -16,6 +19,7 @@ class NewAction extends Action implements HttpGetActionInterface
16
19
* @see _isAllowed()
17
20
*/
18
21
const ADMIN_RESOURCE = 'Foo_Bar::company_id ' ;
22
+
19
23
/**
20
24
* Create new Company action.
21
25
*
@@ -27,6 +31,7 @@ public function execute()
27
31
$ resultPage = $ this ->resultFactory ->create (ResultFactory::TYPE_PAGE );
28
32
$ resultPage ->setActiveMenu ('Foo_Bar::menu_id ' );
29
33
$ resultPage ->getConfig ()->getTitle ()->prepend (__ ('New Company ' ));
34
+
30
35
return $ resultPage ;
31
36
}
32
- }
37
+ }
Original file line number Diff line number Diff line change 8
8
</item >
9
9
</argument >
10
10
<settings >
11
+ <buttons >
12
+ <button name =" add" >
13
+ <url path =" */*/new" />
14
+ <class >primary</class >
15
+ <label translate =" true" >Add New</label >
16
+ </button >
17
+ </buttons >
11
18
<spinner >custom_entity_grid_columns</spinner >
12
19
<deps >
13
20
<dep >custom_entity_grid.custom_entity_grid_data_source</dep >
Original file line number Diff line number Diff line change 8
8
</item >
9
9
</argument >
10
10
<settings >
11
+ <buttons >
12
+ <button name =" add" >
13
+ <url path =" */*/new" />
14
+ <class >primary</class >
15
+ <label translate =" true" >Add New</label >
16
+ </button >
17
+ </buttons >
11
18
<spinner >custom_entity_grid_columns</spinner >
12
19
<deps >
13
20
<dep >custom_entity_grid.custom_entity_grid_data_source</dep >
You can’t perform that action at this time.
0 commit comments