Last active
May 8, 2021 07:07
-
-
Save ozin7/9fb6e1f7164f480300f3e69a11e5cc6e to your computer and use it in GitHub Desktop.
Drupal 8/9: Update entity path alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\pathauto\PathautoState; | |
$node->set('path', ['alias' => $extra_data['URL'], 'pathauto' => PathautoState::SKIP]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment