Skip to content

Commit 0e7865c

Browse files
committed
feat: added file header
1 parent c083764 commit 0e7865c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/command/GenerateLayoutXmlCommand.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { SimpleTemplateGeneratorCommand } from './SimpleTemplateGeneratorCommand
33
import { TemplateWizardData } from 'wizard/SimpleTemplateWizard';
44
import { WizardField, WizardValidationRule } from 'webview/types';
55
import { WizardFieldBuilder } from 'webview/WizardFieldBuilder';
6+
import FileHeader from 'common/xml/FileHeader';
67

78
export default class GenerateLayoutXmlCommand extends SimpleTemplateGeneratorCommand {
89
constructor() {
@@ -21,11 +22,15 @@ export default class GenerateLayoutXmlCommand extends SimpleTemplateGeneratorCom
2122
];
2223
}
2324

25+
getFileHeader(data: TemplateWizardData): string | undefined {
26+
return FileHeader.getHeader(data.module);
27+
}
28+
2429
getWizardTitle(): string {
2530
return 'Layout XML File';
2631
}
2732

28-
getTemplatePath(data: TemplateWizardData): string {
33+
getFilePath(data: TemplateWizardData): string {
2934
const [vendor, module] = data.module.split('_');
3035

3136
if (data.area && data.area !== MagentoScope.Global) {

0 commit comments

Comments
 (0)