Skip to content

Commit

Permalink
Merge pull request #219 from quantcdn/feature/use-entity-term
Browse files Browse the repository at this point in the history
Added missing use and fixed Term entity.
  • Loading branch information
kepol authored Jan 20, 2024
2 parents 5af6ff1 + 40090dc commit 525a7a2
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 525a7a2

Please sign in to comment.