Commit bbe3ee22 authored by Jeroen Tubex's avatar Jeroen Tubex Committed by Sascha Grossenbacher
Browse files

Issue #3248142 by JeroenT: EntityAliasTypeBase plugin gives the following...

Issue #3248142 by JeroenT: EntityAliasTypeBase plugin gives the following PHPStan warning: Access to an undefined property Drupal\pathauto\Plugin\pathauto\AliasType\EntityAliasTypeBase::$translationManager
parent 7e966bf9
Loading
Loading
Loading
Loading
+1 −2
Changes for src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -280,8 +280,7 @@ class EntityAliasTypeBase extends ContextAwarePluginBase implements AliasTypeInt
    }

    if (!empty($options['message'])) {
      $this->messenger->addMessage($this->translationManager
        ->formatPlural(count($ids), 'Updated 1 %label URL alias.', 'Updated @count %label URL aliases.'), [
      $this->messenger->addMessage($this->formatPlural(count($ids), 'Updated 1 %label URL alias.', 'Updated @count %label URL aliases.'), [
          '%label' => $this->getLabel(),
        ]);
    }