Output custom token as plain text

Created on 5 November 2018, about 6 years ago
Updated 15 December 2024, 3 days ago

Hello.
I use this module to output the name of the city accordingly to the currently chosen domain (used Domain Access module) on multi domain site.

Example:

$active_id = \Drupal::service('domain.negotiator')->getActiveId();

if ($active_id == "toronto") { $basic_token = 'Toronto'; return $basic_token; }

Now after inserting it to the text field i have output of this token as a link:
<a href="javascript:void(0);" title="Insert this token into your form">Toronto</a>

How to output the plain text (without link)? Any ideas?

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Engineer_UA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024