Twig dump() function uses Symfony VarDumper when available
Change record for using symfony vardumper with twig dump().
Change record for using symfony vardumper with twig dump().
List of elements in Drupal with a set z-index.
Documentation for Single Directory Components module.
Thoughts on how HTTP2 will affect file aggregation.
Starterkit Theme announcement.
Drupal CSS standards documentation.
Drupal theming docs.
You may want to transform a value in a twig template.
You can do that by checking a condition on the value in an if, and provide values in the then/else.
{% set newvalue = value == 'asdf' ? '123': '456' %}If you have different inputs and outputs, you can create a switch like this.
{% set title_color = {green: 'text-green-3', yellow: 'text-yellow-2', blue: 'text-grey-2'}[color] %}This defines an object, then uses the input value to retrieve the mapped result.