Timeline for How to programmatically create a custom token in a module
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 2, 2018 at 14:19 | comment | added | oknate | This should go in modulename.tokens.inc | |
Sep 11, 2017 at 6:16 | comment | added | Karthikeyan Manivasagam | use Drupal\Core\Render\BubbleableMetadata; $token = \Drupal::token(); function modulename_tokens($type, $tokens, array $data, array $options, BubbleableMetadata $bubbleable_metadata) { ... } | |
Sep 11, 2017 at 2:50 | comment | added | user1359 |
What is new and simple in this example?
|
|
Aug 24, 2017 at 7:34 | history | edited | Karthikeyan Manivasagam | CC BY-SA 3.0 |
deleted 211 characters in body
|
Jun 28, 2017 at 18:34 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
improved formatting; better included information in an existing sentence
|
Jul 27, 2016 at 6:57 | history | edited | Karthikeyan Manivasagam | CC BY-SA 3.0 |
added 1447 characters in body
|
Jul 25, 2016 at 7:00 | review | Late answers | |||
Jul 25, 2016 at 7:08 | |||||
Jul 25, 2016 at 6:41 | history | answered | Karthikeyan Manivasagam | CC BY-SA 3.0 |