diff --git a/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php b/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
index 96318ac..389303e 100644
--- a/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
+++ b/core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php
@@ -66,19 +66,17 @@ protected function createContextFromConfiguration(array $context_configuration)
    * {@inheritdoc}
    */
   public function getContextDefinitions() {
-    $definition = $this->getPluginDefinition();
-    return !empty($definition['context']) ? $definition['context'] : array();
+    return !empty($this->getPluginDefinition()['context']) ? $this->getPluginDefinition()['context'] : array();
   }
 
   /**
    * {@inheritdoc}
    */
   public function getContextDefinition($name) {
-    $definition = $this->getPluginDefinition();
-    if (empty($definition['context'][$name])) {
+    if (empty($this->getPluginDefinition()['context'][$name])) {
       throw new ContextException(sprintf("The %s context is not a valid context.", $name));
     }
-    return $definition['context'][$name];
+    return $this->getPluginDefinition()['context'][$name];
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Block/BlockBase.php b/core/lib/Drupal/Core/Block/BlockBase.php
index 03d76ac..4270f20 100644
--- a/core/lib/Drupal/Core/Block/BlockBase.php
+++ b/core/lib/Drupal/Core/Block/BlockBase.php
@@ -41,10 +41,9 @@ public function label() {
       return $this->configuration['label'];
     }
 
-    $definition = $this->getPluginDefinition();
     // Cast the admin label to a string since it is an object.
     // @see \Drupal\Core\StringTranslation\TranslatableMarkup
-    return (string) $definition['admin_label'];
+    return (string) $this->getPluginDefinition()['admin_label'];
   }
 
   /**
@@ -148,16 +147,15 @@ protected function blockAccess(AccountInterface $account) {
    * @see \Drupal\Core\Block\BlockBase::blockForm()
    */
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
-    $definition = $this->getPluginDefinition();
     $form['provider'] = array(
       '#type' => 'value',
-      '#value' => $definition['provider'],
+      '#value' => $this->getPluginDefinition()['provider'],
     );
 
     $form['admin_label'] = array(
       '#type' => 'item',
       '#title' => $this->t('Block description'),
-      '#plain_text' => $definition['admin_label'],
+      '#plain_text' => $this->getPluginDefinition()['provider'],
     );
     $form['label'] = array(
       '#type' => 'textfield',
@@ -235,8 +233,7 @@ public function blockSubmit($form, FormStateInterface $form_state) {}
    * {@inheritdoc}
    */
   public function getMachineNameSuggestion() {
-    $definition = $this->getPluginDefinition();
-    $admin_label = $definition['admin_label'];
+    $admin_label = $this->getPluginDefinition()['admin_label'];
 
     // @todo This is basically the same as what is done in
     //   \Drupal\system\MachineNameController::transliterate(), so it might make
diff --git a/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php b/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
index 1072975..4e20ec0 100644
--- a/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
+++ b/core/lib/Drupal/Core/Executable/ExecutablePluginBase.php
@@ -20,9 +20,8 @@
    *   options, keyed by option name.
    */
   public function getConfigDefinitions() {
-    $definition = $this->getPluginDefinition();
-    if (!empty($definition['configuration'])) {
-      return $definition['configuration'];
+    if (!empty($this->getPluginDefinition()['configuration'])) {
+      return $this->getPluginDefinition()['configuration'];
     }
     return array();
   }
@@ -37,9 +36,8 @@ public function getConfigDefinitions() {
    *   if the option does not exist.
    */
   public function getConfigDefinition($key) {
-    $definition = $this->getPluginDefinition();
-    if (!empty($definition['configuration'][$key])) {
-      return $definition['configuration'][$key];
+    if (!empty($this->getPluginDefinition()['configuration'][$key])) {
+      return $this->getPluginDefinition()['configuration'][$key];
     }
     return FALSE;
   }
diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php
index 5f7ce3c..2eee386 100644
--- a/core/lib/Drupal/Core/Field/WidgetBase.php
+++ b/core/lib/Drupal/Core/Field/WidgetBase.php
@@ -537,8 +537,7 @@ protected function getFieldSetting($setting_name) {
    *   FALSE if multiple values require separate copies of formElement().
    */
   protected function handlesMultipleValues() {
-    $definition = $this->getPluginDefinition();
-    return $definition['multiple_values'];
+    return $this->getPluginDefinition()['multiple_values'];
   }
 
   /**
diff --git a/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php b/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
index 7f6754d..0b515c4 100644
--- a/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
+++ b/core/modules/aggregator/src/Plugin/aggregator/processor/DefaultProcessor.php
@@ -116,7 +116,7 @@ protected function getEditableConfigNames() {
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     $config = $this->config('aggregator.settings');
     $processors = $config->get('processors');
-    $info = $this->getPluginDefinition();
+    $id = $this->getPluginId();
     $counts = array(3, 5, 10, 15, 20, 25);
     $items = array_map(function ($count) {
       return $this->formatPlural($count, '1 item', '@count items');
@@ -125,18 +125,18 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
     $period = array_map(array($this->dateFormatter, 'formatInterval'), array_combine($intervals, $intervals));
     $period[AGGREGATOR_CLEAR_NEVER] = t('Never');
 
-    $form['processors'][$info['id']] = array();
+    $form['processors'][$id] = array();
     // Only wrap into details if there is a basic configuration.
     if (isset($form['basic_conf'])) {
-      $form['processors'][$info['id']] = array(
+      $form['processors'][$id] = array(
         '#type' => 'details',
         '#title' => t('Default processor settings'),
-        '#description' => $info['description'],
-        '#open' => in_array($info['id'], $processors),
+        '#description' => $this->pluginDefinition()['description'],
+        '#open' => in_array($id, $processors),
       );
     }
 
-    $form['processors'][$info['id']]['aggregator_summary_items'] = array(
+    $form['processors'][$id]['aggregator_summary_items'] = array(
       '#type' => 'select',
       '#title' => t('Number of items shown in listing pages'),
       '#default_value' => $config->get('source.list_max'),
@@ -144,7 +144,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
       '#options' => $items,
     );
 
-    $form['processors'][$info['id']]['aggregator_clear'] = array(
+    $form['processors'][$id]['aggregator_clear'] = array(
       '#type' => 'select',
       '#title' => t('Discard items older than'),
       '#default_value' => $config->get('items.expire'),
@@ -157,7 +157,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
       return ($length == 0) ? t('Unlimited') : $this->formatPlural($length, '1 character', '@count characters');
     }, array_combine($lengths, $lengths));
 
-    $form['processors'][$info['id']]['aggregator_teaser_length'] = array(
+    $form['processors'][$id]['aggregator_teaser_length'] = array(
       '#type' => 'select',
       '#title' => t('Length of trimmed description'),
       '#default_value' => $config->get('items.teaser_length'),
diff --git a/core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php b/core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php
index 2f73c5f..cf0fa4b 100644
--- a/core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php
+++ b/core/modules/aggregator/tests/modules/aggregator_test/src/Plugin/aggregator/processor/TestProcessor.php
@@ -73,16 +73,16 @@ protected function getEditableConfigNames() {
    */
   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
     $processors = $this->config('aggregator.settings')->get('processors');
-    $info = $this->getPluginDefinition();
+    $id = $this->getPluginId();
 
-    $form['processors'][$info['id']] = array(
+    $form['processors'][$id] = array(
       '#type' => 'details',
       '#title' => t('Test processor settings'),
-      '#description' => $info['description'],
-      '#open' => in_array($info['id'], $processors),
+      '#description' => $this->pluginDefinition()['description'],
+      '#open' => in_array($id, $processors),
     );
     // Add some dummy settings to verify settingsForm is called.
-    $form['processors'][$info['id']]['dummy_length'] = array(
+    $form['processors'][$id]['dummy_length'] = array(
       '#title' => t('Dummy length setting'),
       '#type' => 'number',
       '#min' => 1,
diff --git a/core/modules/rest/src/Plugin/ResourceBase.php b/core/modules/rest/src/Plugin/ResourceBase.php
index 33cb3aa..65d519d 100644
--- a/core/modules/rest/src/Plugin/ResourceBase.php
+++ b/core/modules/rest/src/Plugin/ResourceBase.php
@@ -77,11 +77,10 @@ public static function create(ContainerInterface $container, array $configuratio
    */
   public function permissions() {
     $permissions = array();
-    $definition = $this->getPluginDefinition();
     foreach ($this->availableMethods() as $method) {
       $lowered_method = strtolower($method);
       $permissions["restful $lowered_method $this->pluginId"] = array(
-        'title' => $this->t('Access @method on %label resource', array('@method' => $method, '%label' => $definition['label'])),
+        'title' => $this->t('Access @method on %label resource', array('@method' => $method, '%label' => $this->getPluginDefinition()['label'])),
       );
     }
     return $permissions;
diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
index e81ee09..39f4050 100644
--- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
+++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php
@@ -80,10 +80,9 @@ public function post(EntityInterface $entity = NULL) {
     if (!$entity->access('create')) {
       throw new AccessDeniedHttpException();
     }
-    $definition = $this->getPluginDefinition();
     // Verify that the deserialized entity is of the type that we expect to
     // prevent security issues.
-    if ($entity->getEntityTypeId() != $definition['entity_type']) {
+    if ($entity->getEntityTypeId() != $this->getPluginDefinition()['entity_type']) {
       throw new BadRequestHttpException('Invalid entity type');
     }
     // POSTed entities must not have an ID set, because we always want to create
@@ -236,10 +235,9 @@ protected function validate(EntityInterface $entity) {
    */
   protected function getBaseRoute($canonical_path, $method) {
     $route = parent::getBaseRoute($canonical_path, $method);
-    $definition = $this->getPluginDefinition();
 
     $parameters = $route->getOption('parameters') ?: array();
-    $parameters[$definition['entity_type']]['type'] = 'entity:' . $definition['entity_type'];
+    $parameters[$this->getPluginDefinition()['entity_type']]['type'] = 'entity:' . $this->getPluginDefinition()['entity_type'];
     $route->setOption('parameters', $parameters);
 
     return $route;
diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php
index 1cc52f3..8ee9ffa 100644
--- a/core/modules/views/src/Plugin/views/PluginBase.php
+++ b/core/modules/views/src/Plugin/views/PluginBase.php
@@ -513,8 +513,7 @@ public function calculateDependencies() {
    * {@inheritdoc}
    */
   public function getProvider() {
-    $definition = $this->getPluginDefinition();
-    return $definition['provider'];
+    return $this->getPluginDefinition()['provider'];
   }
 
   /**
