Skip to content

Commit

Permalink
Added missing use and fixed Term entity.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Jan 20, 2024
1 parent 5af6ff1 commit 40090dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Url;
use Drupal\node\Entity\Node;
use Drupal\taxonomy\Entity\Term;
use Drupal\quant\Event\QuantEvent;
use Drupal\quant\Event\QuantRedirectEvent;
use GuzzleHttp\Exception\ConnectException;
Expand Down Expand Up @@ -155,7 +156,7 @@ public static function getRedirectLocationsFromRedirect($redirect) {
$node = Node::load($matches[1]);
}
elseif (preg_match('/taxonomy\/term\/(\d+)/', $path, $matches)) {
$term = Taxonomy::load($matches[1]);
$term = Term::load($matches[1]);
}

// Create multilingual redirects.
Expand Down

0 comments on commit 40090dc

Please sign in to comment.