diff --git a/core/lib/Drupal/Component/Plugin/PluginBase.php b/core/lib/Drupal/Component/Plugin/PluginBase.php
index eccddc9..3407845 100644
--- a/core/lib/Drupal/Component/Plugin/PluginBase.php
+++ b/core/lib/Drupal/Component/Plugin/PluginBase.php
@@ -56,6 +56,34 @@ public function getPluginId() {
   }
 
   /**
+   * Returns the base_plugin_id of the plugin instance.
+   *
+   * @return string
+   *   The base_plugin_id of the plugin instance.
+   */
+  public function getBasePluginId() {
+    if (strpos($this->pluginId, ':')) {
+      list($base_plugin_id) = explode(':', $this->pluginId);
+      return $base_plugin_id;
+    }
+    return $this->pluginId;
+  }
+
+  /**
+   * Returns the derivative_id of the plugin instance.
+   *
+   * @return string|NULL
+   *   The derivative_id of the plugin instance NULL otherwise.
+   */
+  public function getDerivativeId() {
+    if (strpos($this->pluginId, ':')) {
+      list(, $derivative_id) = explode(':', $this->pluginId);
+      return $derivative_id;
+    }
+    return NULL;
+  }
+
+  /**
    * {@inheritdoc}
    */
   public function getPluginDefinition() {
