url_obfuscator
1 sites
Security covered
This module provides the functionality to (de)encrypt URLs and query strings.
Example
use Drupal\Core\Url;
$params = [
'id' => 'My_ID',
'name' => 'John',
'email' => '[email protected]',
];
$query = \Drupal::service('url_obfuscator.manager')->getEncryptedQuery($params);
$url = Url::fromRoute('<front>', [], ['query' => $query])
Sponsors
- Initial development: Fundación UNICEF Comité Español
- Contrib version: Amara NZero