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).
Comments
Comment #3
jofitzNeeds a few tests, e.g. a string that does not require encoding
Comment #4
f.tendi commentedAdded new tests
Comment #5
jofitzGood work, thanks @f.tendi