diff --git a/src/Plugin/Block/RngRegistrationBlock.php b/src/Plugin/Block/RngRegistrationBlock.php index 4393a33..dbca8bb 100644 --- a/src/Plugin/Block/RngRegistrationBlock.php +++ b/src/Plugin/Block/RngRegistrationBlock.php @@ -6,7 +6,6 @@ use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityFormBuilderInterface; use Drupal\Core\Routing\RouteMatchInterface; -use Drupal\Core\Session\AccountInterface; use Drupal\rng\Entity\Registration; use Symfony\Component\DependencyInjection\ContainerInterface; use Drupal\rng\EventManagerInterface; @@ -86,7 +85,7 @@ public function build() { $registration_types = $event_meta->getRegistrationTypes(); // Just want one registration type. - if (count($registration_types) !== 1) { + if (count($registration_types) === 1) { $registration_type = reset($registration_types); $registration = Registration::create([ 'type' => $registration_type->id(),