Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / ctools-plugin / relationship.twig
index 252e68c7bd43cb9f5bac53c140a17d897060d98c..bd5fbc2479dae56580f7066ad9b0c8d2208d544a 100644 (file)
@@ -12,7 +12,7 @@ $plugin = array(
   'title' => t('{{ plugin_name }}'),
   'description' => t('{{ description }}'),
 {% if context == 'Node' or context == 'User' %}
-  'required context' => new ctools_context_required(t('{{ context }}'), '{{ context | lower }}'),
+  'required context' => new ctools_context_required(t('{{ context }}'), '{{ context|lower }}'),
 {% elseif  context == 'Term' %}
   'required context' => new ctools_context_required(t('{{ context }}'), array('term', 'taxonomy_term')),
 {% endif %}
@@ -31,7 +31,7 @@ function {{ machine_name }}_{{ plugin_machine_name }}_context($context, $conf) {
   }
 
 {% if context == 'Node' or context == 'Term' %}
-  ${{ context | lower }} = clone $context->data;
+  ${{ context|lower }} = clone $context->data;
 
 {% elseif  context == 'User' %}
 {# Use $account variable avoid confusion with the global $user object #}