Skip to content

Commit

Permalink
Add drupal documentation and twig stub. (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfbauer authored Nov 14, 2022
1 parent 933f4d6 commit 395cb5e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/documentation/drupal/index.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Meta } from '@storybook/addon-docs';

<Meta title="Documentation/Drupal/Twig" />

# Twig

## Search in processed field value
`{% 'some-value' in content.field_name|render|trim %}`

Or if you don't want the default drupal field markup:

`{% 'some-value' in content.field_name|field_value|render|trim %}`

0 comments on commit 395cb5e

Please sign in to comment.