File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
templates/Plugin/Migrate/_process
tests/functional/Generator/Plugin/Migrate/_process
_n_deps/src/Plugin/migrate/process
_w_deps/src/Plugin/migrate/process Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ declare(strict_types=1);
66namespace Drupal\ {{ machine_name }}\Plugin\migrate\ process ;
77
88{% apply sort_namespaces % }
9+ use Drupal\migrate\Attribute\MigrateProcess ;
910use Drupal\migrate\MigrateExecutableInterface ;
1011use Drupal\migrate\ProcessPluginBase ;
1112use Drupal\migrate\Row ;
@@ -27,9 +28,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
2728 * plugin: {{ plugin_id }}
2829 * source: foo
2930 * @endcode
30- *
31- * @MigrateProcessPlugin(id = "{{ plugin_id }}")
3231 */
32+ # [MigrateProcess('{{ plugin_id }}')]
3333final class {{ class }} extends ProcessPluginBase {% if services % }implements ContainerFactoryPluginInterface {% endif % }{
3434
3535{% if services % }
Original file line number Diff line number Diff line change 44
55namespace Drupal \example \Plugin \migrate \process ;
66
7+ use Drupal \migrate \Attribute \MigrateProcess ;
78use Drupal \migrate \MigrateExecutableInterface ;
89use Drupal \migrate \ProcessPluginBase ;
910use Drupal \migrate \Row ;
1920 * plugin: example_qux
2021 * source: foo
2122 * @endcode
22- *
23- * @MigrateProcessPlugin(id = "example_qux")
2423 */
24+ #[MigrateProcess('example_qux ' )]
2525final class Qux extends ProcessPluginBase {
2626
2727 /**
Original file line number Diff line number Diff line change 66
77use Drupal \Core \Entity \EntityTypeManagerInterface ;
88use Drupal \Core \Plugin \ContainerFactoryPluginInterface ;
9+ use Drupal \migrate \Attribute \MigrateProcess ;
910use Drupal \migrate \MigrateExecutableInterface ;
1011use Drupal \migrate \ProcessPluginBase ;
1112use Drupal \migrate \Row ;
2223 * plugin: example_qux
2324 * source: foo
2425 * @endcode
25- *
26- * @MigrateProcessPlugin(id = "example_qux")
2726 */
27+ #[MigrateProcess('example_qux ' )]
2828final class Qux extends ProcessPluginBase implements ContainerFactoryPluginInterface {
2929
3030 /**
You can’t perform that action at this time.
0 commit comments