Skip to content

Commit

Permalink
Removed unnecessary code from merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
kepol committed Feb 28, 2024
1 parent d838967 commit 3a9d420
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,6 @@ public static function unpublishTaxonomyTerm(EntityInterface $entity) {
$tid = $entity->get('tid')->value;
$url = Utility::getCanonicalUrl('taxonomy_term', $tid, $langcode);

// Unpublish canonical redirect from taxonomy/term/123.
if ("/taxonomy/term/{$tid}" != $url) {
// QuantEvent can be used to unpublish any resource. Note, the source must
// be given here and not the destination.
\Drupal::service('event_dispatcher')->dispatch(new QuantEvent('', "/taxonomy/term/{$tid}", [], NULL), QuantEvent::UNPUBLISH);
}

// Handle internal path redirects.
self::handleInternalPathRedirects($entity, $langcode, $url);

Expand Down

0 comments on commit 3a9d420

Please sign in to comment.