diff --git a/modules/migrate_embargoes_to_embargo/src/Plugin/migrate/source/Entity.php b/modules/migrate_embargoes_to_embargo/src/Plugin/migrate/source/Entity.php index 19756df..864c45e 100644 --- a/modules/migrate_embargoes_to_embargo/src/Plugin/migrate/source/Entity.php +++ b/modules/migrate_embargoes_to_embargo/src/Plugin/migrate/source/Entity.php @@ -2,13 +2,11 @@ namespace Drupal\migrate_embargoes_to_embargo\Plugin\migrate\source; -use Drupal\migrate\Plugin\migrate\source\SourcePluginBase; -use Drupal\migrate\Plugin\MigrationInterface; - -use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; - +use Drupal\migrate\Plugin\migrate\source\SourcePluginBase; +use Drupal\migrate\Plugin\MigrationInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/src/EmbargoExistenceQueryTrait.php b/src/EmbargoExistenceQueryTrait.php index 7b6a9f8..db554cb 100644 --- a/src/EmbargoExistenceQueryTrait.php +++ b/src/EmbargoExistenceQueryTrait.php @@ -10,6 +10,9 @@ use Drupal\Core\Session\AccountProxyInterface; use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface; +/** + * Helper trait; facilitate filtering of embargoed entities. + */ trait EmbargoExistenceQueryTrait { /** diff --git a/tests/src/Kernel/EmbargoKernelTestBase.php b/tests/src/Kernel/EmbargoKernelTestBase.php index c79114b..ce81111 100644 --- a/tests/src/Kernel/EmbargoKernelTestBase.php +++ b/tests/src/Kernel/EmbargoKernelTestBase.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\embargo\Kernel; -use Drupal\embargo\Entity\IpRange; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\embargo\EmbargoInterface; +use Drupal\embargo\Entity\IpRange; use Drupal\embargo\IpRangeInterface; use Drupal\node\NodeInterface; use Drupal\Tests\islandora_test_support\Kernel\AbstractIslandoraKernelTestBase; diff --git a/tests/src/Kernel/IpRangeEmbargoTest.php b/tests/src/Kernel/IpRangeEmbargoTest.php index 9b29a0d..60ef26a 100644 --- a/tests/src/Kernel/IpRangeEmbargoTest.php +++ b/tests/src/Kernel/IpRangeEmbargoTest.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\embargo\Kernel; -use Drupal\node\NodeInterface; use Drupal\embargo\EmbargoInterface; use Drupal\embargo\IpRangeInterface; +use Drupal\node\NodeInterface; /** * Test IpRange embargo.