diff --git a/config/install/pathauto.settings.yml b/config/install/pathauto.settings.yml index 6cf57fb..fa6a105 100644 --- a/config/install/pathauto.settings.yml +++ b/config/install/pathauto.settings.yml @@ -5,7 +5,6 @@ max_length : 100 max_component_length: 100 transliterate : FALSE reduce_ascii : FALSE -ignore_words : ', in, is,that, the , this, with, ' case : 1 ignore_words : 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with' update_action : 2 diff --git a/pathauto.js b/pathauto.js index be49cd6..52dcf12 100644 --- a/pathauto.js +++ b/pathauto.js @@ -3,13 +3,13 @@ Drupal.behaviors.pathFieldsetSummaries = { attach: function (context) { $('fieldset.path-form', context).drupalSetSummary(function (context) { - var path = $('.form-item-path-alias input').val(); - var automatic = $('.form-item-path-pathauto input').attr('checked'); + var path = $('.form-item-path-alias input', context).val(); + var automatic = $('.form-item-path-pathauto input', context).attr('checked'); if (automatic) { return Drupal.t('Automatic alias'); } - if (path) { + else if (path) { return Drupal.t('Alias: @alias', { '@alias': path }); } else { diff --git a/pathauto.module b/pathauto.module index 67c7b2b..c0c5938 100644 --- a/pathauto.module +++ b/pathauto.module @@ -26,11 +26,6 @@ use Drupal\Core\Routing\RouteMatchInterface; use Drupal\node\Entity\Node; use Drupal\user\Entity\User; -/** - * The default ignore word list. - */ -define('PATHAUTO_IGNORE_WORDS', 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with'); - /** * Implements hook_hook_info(). */ diff --git a/src/PathautoManager.php b/src/PathautoManager.php index 2bea09a..3959bc4 100644 --- a/src/PathautoManager.php +++ b/src/PathautoManager.php @@ -530,7 +530,7 @@ public function updateAlias(EntityInterface $entity, $op, array $options = array * depending on the $load_entities parameter. */ protected function getTermTree($vid, $parent = 0, $max_depth = NULL, $load_entities = FALSE) { - return taxonomy_get_tree($vid, $parent, $max_depth, $load_entities); + return \Drupal::entityManager()->getStorage('taxonomy_term')->loadTree($vid, $parent, $max_depth, $load_entities); } /**