diff --git a/profile.module b/profile.module
index 089d178..d2c6a91 100644
--- a/profile.module
+++ b/profile.module
@@ -133,12 +133,12 @@ function profile_entity_extra_field_info() {
   // automatically to other view modes.
   /** @var \Drupal\profile\Entity\ProfileType $bundle */
   foreach (ProfileType::loadMultiple() as $bundle) {
-    $extra['user']['user']['display']['profile_' . $bundle->id()] = array(
+    $extra['user']['user']['display']['profile_' . $bundle->id()] = [
       'label' => $bundle->label(),
       'description' => t('Display @type profiles', ['@type' => $bundle->label()]),
       'weight' => 10,
       'visible' => FALSE,
-    );
+    ];
   }
   return $extra;
 }
diff --git a/src/Entity/Profile.php b/src/Entity/Profile.php
index 512c1cc..22d6660 100644
--- a/src/Entity/Profile.php
+++ b/src/Entity/Profile.php
@@ -261,31 +261,31 @@ class Profile extends ContentEntityBase implements ProfileInterface {
     $fields = parent::baseFieldDefinitions($entity_type);
 
     $fields['uid'] = BaseFieldDefinition::create('entity_reference')
-      ->setLabel(t('Owner'))
-      ->setDescription(t('The user that owns this profile.'))
+      ->setLabel($this->t('Owner'))
+      ->setDescription($this->t('The user that owns this profile.'))
       ->setRevisionable(TRUE)
       ->setSetting('target_type', 'user')
       ->setSetting('handler', 'default');
 
     $fields['status'] = BaseFieldDefinition::create('boolean')
-      ->setLabel(t('Active'))
-      ->setDescription(t('Whether the profile is active.'))
+      ->setLabel($this->t('Active'))
+      ->setDescription($this->t('Whether the profile is active.'))
       ->setDefaultValue(TRUE)
       ->setRevisionable(TRUE);
 
     $fields['is_default'] = BaseFieldDefinition::create('boolean')
-      ->setLabel(t('Default'))
-      ->setDescription(t('Whether this is the default profile.'))
+      ->setLabel($this->t('Default'))
+      ->setDescription($this->t('Whether this is the default profile.'))
       ->setRevisionable(TRUE);
 
     $fields['created'] = BaseFieldDefinition::create('created')
-      ->setLabel(t('Created'))
-      ->setDescription(t('The time when the profile was created.'))
+      ->setLabel($this->t('Created'))
+      ->setDescription($this->t('The time when the profile was created.'))
       ->setRevisionable(TRUE);
 
     $fields['changed'] = BaseFieldDefinition::create('changed')
-      ->setLabel(t('Changed'))
-      ->setDescription(t('The time when the profile was last edited.'))
+      ->setLabel($this->t('Changed'))
+      ->setDescription($this->t('The time when the profile was last edited.'))
       ->setRevisionable(TRUE);
 
     return $fields;
diff --git a/src/Form/ProfileTypeForm.php b/src/Form/ProfileTypeForm.php
index 89696fe..8ef9495 100644
--- a/src/Form/ProfileTypeForm.php
+++ b/src/Form/ProfileTypeForm.php
@@ -29,10 +29,10 @@ class ProfileTypeForm extends BundleEntityFormBase {
     }
 
     $form['label'] = [
-      '#title' => t('Label'),
+      '#title' => $this->t('Label'),
       '#type' => 'textfield',
       '#default_value' => $type->label(),
-      '#description' => t('The human-readable name of this profile type.'),
+      '#description' => $this->t('The human-readable name of this profile type.'),
       '#required' => TRUE,
       '#size' => 30,
     ];
@@ -47,18 +47,18 @@ class ProfileTypeForm extends BundleEntityFormBase {
     ];
     $form['registration'] = [
       '#type' => 'checkbox',
-      '#title' => t('Include in user registration form'),
+      '#title' => $this->t('Include in user registration form'),
       '#default_value' => $type->getRegistration(),
     ];
     $form['multiple'] = [
       '#type' => 'checkbox',
-      '#title' => t('Allow multiple profiles'),
+      '#title' => $this->t('Allow multiple profiles'),
       '#default_value' => $type->getMultiple(),
     ];
 
     $form['roles'] = [
       '#type' => 'checkboxes',
-      '#title' => t('Allowed roles'),
+      '#title' => $this->t('Allowed roles'),
       '#description' => $this->t('Limit the users that can have this profile by role.</br><em>None will indicate that all users can have this profile type.</em>'),
       '#options' => [],
       '#default_value' => $type->getRoles(),
