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 / access.twig
index d817869b733d86dbd4f0ae1a430e78aef873d4f9..5ea49436ae0b740b39803ff3677ad0343773079a 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 %}
@@ -34,7 +34,7 @@ function {{ machine_name }}_{{ plugin_machine_name }}_access_check($conf, $conte
 {% endif %}
 
 {% 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 #}