You are here

public function Barcode::getFilters in Barcodes 8

Same name and namespace in other branches
  1. 2.0.x src/Template/Barcode.php \Drupal\barcodes\Template\Barcode::getFilters()

File

src/Template/Barcode.php, line 24

Class

Barcode
Class Barcode.

Namespace

Drupal\barcodes\Template

Code

public function getFilters() {
  return [
    new \Twig_SimpleFilter('barcode', [
      $this,
      'filterBarcode',
    ], [
      'is_safe' => [
        'html',
      ],
    ]),
  ];
}