File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
templates/Plugin/Migrate/_destination
tests/functional/Generator/Plugin/Migrate/_destination
_n_deps/src/Plugin/migrate/destination
_w_deps/src/Plugin/migrate/destination 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\ destination ;
77
88{% apply sort_namespaces % }
9+ use Drupal\migrate\Attribute\MigrateDestination ;
910use Drupal\migrate\Plugin\migrate\destination\DestinationBase ;
1011use Drupal\migrate\Plugin\MigrationInterface ;
1112use Drupal\migrate\Row ;
@@ -18,9 +19,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
1819
1920/**
2021 * The '{{ plugin_id }}' destination plugin.
21- *
22- * @MigrateDestination(id = "{{ plugin_id }}")
2322 */
23+ # [MigrateDestination('{{ plugin_id }}')]
2424final class {{ class }} extends DestinationBase {% if services % }implements ContainerFactoryPluginInterface {% endif % }{
2525
2626{% if services % }
Original file line number Diff line number Diff line change 44
55namespace Drupal \example \Plugin \migrate \destination ;
66
7+ use Drupal \migrate \Attribute \MigrateDestination ;
78use Drupal \migrate \Plugin \migrate \destination \DestinationBase ;
89use Drupal \migrate \Plugin \MigrationInterface ;
910use Drupal \migrate \Row ;
1011
1112/**
1213 * The 'example_foo' destination plugin.
13- *
14- * @MigrateDestination(id = "example_foo")
1514 */
15+ #[MigrateDestination('example_foo ' )]
1616final class Foo extends DestinationBase {
1717
1818 /**
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 \MigrateDestination ;
910use Drupal \migrate \Plugin \migrate \destination \DestinationBase ;
1011use Drupal \migrate \Plugin \MigrationInterface ;
1112use Drupal \migrate \Row ;
1213use Symfony \Component \DependencyInjection \ContainerInterface ;
1314
1415/**
1516 * The 'example_bar' destination plugin.
16- *
17- * @MigrateDestination(id = "example_bar")
1817 */
18+ #[MigrateDestination('example_bar ' )]
1919final class Bar extends DestinationBase implements ContainerFactoryPluginInterface {
2020
2121 /**
You can’t perform that action at this time.
0 commit comments