Skip to content

Commit

Permalink
[generate:twig:extension] Make class extends proper class (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
georch authored and jmolivas committed Oct 20, 2016
1 parent 67df687 commit 45188e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/module/src/TwigExtension/twig-extension.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace Drupal\{{module}}\TwigExtension;
{% endblock %}

{% block use_class %}
use Drupal\Core\Template\TwigExtension;
{% endblock %}

{% block class_declaration %}
Expand All @@ -18,7 +17,7 @@ use Drupal\Core\Template\TwigExtension;
*
* @package Drupal\{{module}}
*/
class {{ class }} extends TwigExtension {% endblock %}
class {{ class }} extends \Twig_Extension {% endblock %}

{% set properties = services[1:] %}
{% block class_properties %}
Expand Down

0 comments on commit 45188e3

Please sign in to comment.