From 395cb5e0a6580796d9a2cd846fafba7251e22bc9 Mon Sep 17 00:00:00 2001 From: Chris Bauer Date: Mon, 14 Nov 2022 10:31:45 -0800 Subject: [PATCH] Add drupal documentation and twig stub. (#26) --- src/documentation/drupal/index.stories.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/documentation/drupal/index.stories.mdx diff --git a/src/documentation/drupal/index.stories.mdx b/src/documentation/drupal/index.stories.mdx new file mode 100644 index 0000000..36e2bb5 --- /dev/null +++ b/src/documentation/drupal/index.stories.mdx @@ -0,0 +1,13 @@ +import { Meta } from '@storybook/addon-docs'; + + + +# 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 %}` +