diff --git a/src/Form/RestUIForm.php b/src/Form/RestUIForm.php
index ef86e28..de15660 100644
--- a/src/Form/RestUIForm.php
+++ b/src/Form/RestUIForm.php
@@ -184,7 +184,7 @@ class RestUIForm extends ConfigFormBase {
 
     // Granularity selection.
     $form['granularity'] = [
-      '#title' => t('Granularity'),
+      '#title' => $this->t('Granularity'),
       '#type' => 'select',
       '#options' => [
         RestResourceConfigInterface::RESOURCE_GRANULARITY => $this->t('Resource'),
