DrupalEasy Podcast 144: Ted Blocks Dancing Sharks (Flag module in D8 - Tess Flynn)

Tess Flynn (socketwench), Drupal Developer at Blink Reaction and co-maintainer of the Flag module, joins the full crew to talk about her co-maintainership of Flag module, her journey to port it to Drupal 8, and Zardoz. We also learn that Ted protects himself from time-sucking web sites, Andrew's future employment dreams, and that Ryan is the only one looking out for Mike.

Interview

DrupalEasy News

Three Stories

Sponsors

Picks of the Week

Upcoming Events

Five Questions (answers only)

  • Macbook Air (work) Macbook Air running arch linux (home) - PHPStorm
  • Jesus Manuel Olivas
  • Twin Cities
  • Dev ops
  • Media handling

Follow us on Twitter

Intro Music

Drupal Way by Marcia Buckingham (acmaintainer) (vocals, bass and mandolin) and Charlie Poplees (guitar). The lyrics by Marcia Buckingham, music by Kate Wolfe.

Subscribe

Subscribe to our podcast on iTunes or Miro. Listen to our podcast on Stitcher.

If you'd like to leave us a voicemail, call 321-396-2340. Please keep in mind that we might play your voicemail during one of our future podcasts. Feel free to call in with suggestions, rants, questions, or corrections. If you'd rather just send us an email, please use our contact page.

Comments

As requested, I'm replying via comment thread... :) Some additional thoughts on token replacement using Twig:

I don't believe there is any way to limit Twig parsing to just filters (I believe that's the term you were looking for -- something you can pipe a variables into eg: {{ foo|length }}). Regardless, I don't think it's a bad idea to allow all of Twig to be available in token replacements.

True, I can't think of a good reason you would need a for-loop for a pathauto pattern, but that doesn't mean there isn't one. Twig already sanitizes variables and limits the amount of "programming" you can do. It's not like the PHP Filter days where you could sneak a database query into any old text field.

Instead of having a core token for "all tags separated by '/'" we can just provide an "all tags" Twig variable and the site builder can use {{ tags|join('/') }} in their pathauto pattern. If they want them separated by hyphens, there's no waiting for someone else to build that into the Token module.

There may be argument that it affects performance. These would be inline Twig templates and not compiled down to PHP like other *.html.twig files. I don't know nearly enough about Twig's inner working to speak to that.

Finally, two points of clarification. First, I'm not a member of the VDC team, though I appreciate being mistaken for one! Second, my last name is pronounced "Karen" (like the woman's name) not "Keran" (like it's spelled). If I could, I'd submit a patch to clean up that confusion as well...

Again, thanks for raising awareness of this new functionality in D8. I'm very excited by it!

Submitted by Guest (not verified) on Fri, 02/06/2015 - 15:54