From d778b715649d7786d42571ca907a4154b888a3ed Mon Sep 17 00:00:00 2001
From: akshay.swnt22@gmail.com <akshay.swnt22@gmail.com>
Date: Jan 23, 2017 11:09:47 AM

$this->t() should be used instead of t() for Drupal 8 version

diff --git a/src/Plugin/Filter/AlinksFilter.php b/src/Plugin/Filter/AlinksFilter.php
index ec919da..702a013 100644
--- a/src/Plugin/Filter/AlinksFilter.php
+++ b/src/Plugin/Filter/AlinksFilter.php
@@ -34,15 +34,15 @@
 
     $form['help'] = array(
       '#type' => 'markup',
-      '#value' => '<p>' . t("Enable automatic links") . '</p>',
+      '#value' => '<p>' . $this->t("Enable automatic links") . '</p>',
     );
 
 
     // Replace space_hyphens with em-dash.
     $form['limit'] = array(
       '#type' => 'textfield',
-      '#title' => t('Limit links'),
-      '#description' => t('Use -1 for unlimited links.'),
+      '#title' => $this->t('Limit links'),
+      '#description' => $this->t('Use -1 for unlimited links.'),
       '#default_value' => $settings['limit'],
     );
 
@@ -77,7 +77,7 @@
     $output = '';
 
     if ($long) {
-      $output = t('Automatic links will be added.');
+      $output = $this->t('Automatic links will be added.');
     }
 
     return $output;
