forked from hechoendrupal/drupal-console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginImageEffectGenerator.php
More file actions
35 lines (32 loc) · 1000 Bytes
/
Copy pathPluginImageEffectGenerator.php
File metadata and controls
35 lines (32 loc) · 1000 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
<?php
/**
* @file
* Contains \Drupal\AppConsole\Generator\PluginImageEffectGenerator.
*/
namespace Drupal\AppConsole\Generator;
class PluginImageEffectGenerator extends Generator
{
/**
* Generator Plugin Image Effect
* @param string $module Module name
* @param string $class_name Plugin Class name
* @param string $plugin_label Plugin label
* @param string $plugin_id Plugin id
* @param string $description Plugin description
*/
public function generate($module, $class_name, $label, $plugin_id, $description)
{
$parameters = [
'module' => $module,
'class_name' => $class_name,
'label' => $label,
'plugin_id' => $plugin_id,
'description' => $description,
];
$this->renderFile(
'module/src/Plugin/ImageEffect/imageeffect.php.twig',
$this->getPluginPath($module, 'ImageEffect') . '/' . $class_name . '.php',
$parameters
);
}
}