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 / content-type.twig
index 138e99467496ddc0efad66374fcf77f164943213..26a53b973f6a1f82468bebd7b172cbd5541c05c8 100644 (file)
@@ -13,7 +13,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 %}
@@ -33,7 +33,7 @@ function {{ machine_name }}_{{ plugin_machine_name }}_content_type_render($subty
 
 {% endif %}
 {% if context == 'Node' or context == 'Term' %}
-  ${{ context | lower }} = clone $context->data;
+  ${{ context|lower }} = clone $context->data;
 {% elseif  context == 'User' %}
 {# Use $account variable to avoid confusion with the global $user object #}
   $account = clone $context->data;