You are here

public function SpamspanExtension::__construct in SpamSpan filter 8

Same name and namespace in other branches
  1. 8.2 src/TwigExtension/SpamspanExtension.php \Drupal\spamspan\TwigExtension\SpamspanExtension::__construct()

Constructor of SpamSpanExtension.

Parameters

\Drupal\Core\Render\Renderer $renderer: The renderer.

File

src/TwigExtension/SpamspanExtension.php, line 26

Class

SpamspanExtension
Provides the SpamSpan filter function within Twig templates.

Namespace

Drupal\spamspan\TwigExtension

Code

public function __construct(Renderer $renderer) {
  $this->renderer = $renderer;
}