Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / templates / module / src / Plugin / migrate / process / process.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{module}}\Plugin\migrate\process\{{class_name}}.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{module}}\Plugin\migrate\process;
9 {% endblock %}
10
11 {% block use_class %}
12 use Drupal\migrate\ProcessPluginBase;
13 use Drupal\migrate\MigrateExecutableInterface;
14 use Drupal\migrate\Row;
15 {% endblock %}
16
17 {% block class_declaration %}
18 /**
19  * Provides a '{{class_name}}' migrate process plugin.
20  *
21  * @MigrateProcessPlugin(
22  *  id = "{{plugin_id}}"
23  * )
24  */
25 class {{class_name}} extends ProcessPluginBase {% endblock %}
26 {% block class_methods %}
27   /**
28    * {@inheritdoc}
29    */
30   public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
31     // Plugin logic goes here.
32   }
33 {% endblock %}