Problem/Motivation

urlencode modifier not exists.

Steps to reproduce

After module installation, try to use in a page the following token:

[token-modifier:urlencode:current-page:title]

This is the exception:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "urlencode" plugin does not exist. Valid plugin IDs for Drupal\token_modifier\Plugin\TokenModifierPluginManager are: length, lowercase, strip-tags, title-case, uppercase, upper-case-first in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

f.tendi created an issue. See original summary.

jofitz’s picture

Status: Active » Needs work

Needs a few tests, e.g. a string that does not require encoding

f.tendi’s picture

Added new tests

jofitz’s picture

Version: 2.0.4 » 2.0.x-dev
Status: Needs work » Fixed

Good work, thanks @f.tendi

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.