Mercurial > hg > isophonics-drupal-site
annotate core/modules/views/templates/views-view-field.html.twig @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 {# |
Chris@0 | 2 /** |
Chris@0 | 3 * @file |
Chris@0 | 4 * Default theme implementation for a single field in a view. |
Chris@0 | 5 * |
Chris@0 | 6 * Available variables: |
Chris@0 | 7 * - view: The view that the field belongs to. |
Chris@0 | 8 * - field: The field handler that can process the input. |
Chris@0 | 9 * - row: The raw result of the database query that generated this field. |
Chris@0 | 10 * - output: The processed output that will normally be used. |
Chris@0 | 11 * |
Chris@0 | 12 * When fetching output from the row this construct should be used: |
Chris@0 | 13 * data = row[field.field_alias] |
Chris@0 | 14 * |
Chris@0 | 15 * The above will guarantee that you'll always get the correct data, regardless |
Chris@0 | 16 * of any changes in the aliasing that might happen if the view is modified. |
Chris@0 | 17 * |
Chris@0 | 18 * @see template_preprocess_views_view_field() |
Chris@0 | 19 * |
Chris@0 | 20 * @ingroup themeable |
Chris@0 | 21 */ |
Chris@0 | 22 #} |
Chris@0 | 23 {{ output -}} |