forked from hechoendrupal/drupal-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginRulesActionGenerator.php
More file actions
37 lines (34 loc) · 934 Bytes
/
Copy pathPluginRulesActionGenerator.php
File metadata and controls
37 lines (34 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* @file
* Contains \Drupal\AppConsole\Generator\PluginBlockGenerator.
*/
namespace Drupal\AppConsole\Generator;
class PluginRulesActionGenerator extends Generator
{
/**
* Generator Plugin RulesAction
* @param $module
* @param $class_name
* @param $label
* @param $plugin_id
* @param $category
* @param $context
*/
public function generate($module, $class_name, $label, $plugin_id, $category, $context)
{
$parameters = [
'module' => $module,
'class_name' => $class_name,
'label' => $label,
'plugin_id' => $plugin_id,
'category' => $category,
'context' => $context,
];
$this->renderFile(
'module/src/Plugin/RulesAction/rulesaction.php.twig',
$this->getPluginPath($module, 'RulesAction') . '/' . $class_name . '.php',
$parameters
);
}
}