Pular para o conteúdo principal
Início
Desenvolvimento de software personalizado
  • Consultoria
    • Todos os serviços de consultoria
    • Ruby on Rails
    • ReactJs
    • Drupal
    • Preços
  • Hospedagem
    • Todos os aplicativos gerenciados
    • Aplicativo de e-mail
    • Jenkins
    • SMT
    • Preços
  • Sobre nós
    • Nossa pilha de tecnologia
    • Nosso Processo
    • Nossa Equipe
    • Estudos de caso
    • Contate-nos
Vote up!

4

Vote down!

Some Twig convenience methods for Drupal 9

Engineering Blog
Issue 2024Q1 (current)

Twig_tweak cheatsheet (highly recommend): https://git.drupalcode.org/project/twig_tweak/-/blob/3.x/docs/cheat-sheet.md

  {{ node.field_image_hero | file_url }}
 content.field_background_color|escape|striptags|replace({"\n": "", "\r": "", "\t": ""})
 {% for item in items %}
   {{ item.content['#context']['value'] }}
 file_url(content.field_image['#items'].entity.uri.value)
Related Articles
Vote up!

2

Vote down!
A first functional test in Drupal 9 (test a redirect in a controller)
Vote up!

-4

Vote down!
Drupal asks for keycloak secret. What is that, where do you get it?
Vote up!

14

Vote down!
[FIXED]: Error: Call to a member function transformDimensions() on null in core/modules/ image/image.module
Vote up!

-7

Vote down!
How to set a default publish_on field when creating a node in drupal 9
Vote up!

4

Vote down!
Handle configuration settings in custom Drupal modules and example of using the configuration API in Drupal
Vote up!

6

Vote down!
Default Drupal file attachment types

Please log in to post a comment:

Authenticate through Google

User account menu

  • Register
  • Entrar

Pages

  • Issues
  • Engineering Blog
  • Site Updates
  • Tags
  • All Articles
  • Careers
  • Contact us
  • English
  • Español
  • Português
  • Russian
  • LinkedIn linkedin logo
  • Youtube youtube logo

Social Login

Authenticate through Google
Copyright (c) 2025 Wasya Co
Termos e Condições

  201 W 5th St 11th Floor, Austin, TX 78701