You are here

public function Barcode::__construct in Barcodes 2.0.x

Same name in this branch
  1. 2.0.x src/Template/Barcode.php \Drupal\barcodes\Template\Barcode::__construct()
  2. 2.0.x src/Plugin/Block/Barcode.php \Drupal\barcodes\Plugin\Block\Barcode::__construct()

Constructs a Barcode Twig extension.

Parameters

\Drupal\Core\Utility\Token $token: The token service.

File

src/Template/Barcode.php, line 30

Class

Barcode
Provides a "barcode" Twig filter for formatting text as a barcode.

Namespace

Drupal\barcodes\Template

Code

public function __construct(Token $token) {
  $this->token = $token;
}