Hot answers tagged

3

I feel like there is a better way but I just quickly created a custom token. <?php /** * @file * Node custom functionality. */ use Drupal\Core\Render\BubbleableMetadata; use Drupal\image\Entity\ImageStyle; /** * Implements hook_token_info(). */ function my_custom_module_token_info() { $type = [ 'name' => t('My Custom'), 'description' ...


Only top voted, non community-wiki answers of a minimum length are eligible