Index: src/Entity/License.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/Entity/License.php	(date 1501505023000)
+++ src/Entity/License.php	(revision )
@@ -2,6 +2,7 @@
 
 namespace Drupal\commerce_license\Entity;
 
+use Drupal\commerce_license\LicenseTypeManager;
 use Drupal\Core\Entity\EntityStorageInterface;
 use Drupal\Core\Field\BaseFieldDefinition;
 use Drupal\Core\Entity\ContentEntityBase;
@@ -89,14 +90,6 @@
     }
   }
 
-  /**
-   * {@inheritdoc}
-   */
-  public function getType() {
-    $license_type_manager = \Drupal::service('plugin.manager.commerce_license_type');
-    return $license_type_manager->createInstance($this->bundle());
-  }
-
   /**
    * {@inheritdoc}
    */
@@ -146,9 +139,11 @@
   /**
    * {@inheritdoc}
    */
-  public static function getWorkflowId() {
-    $workflow = $this->getType()->getWorkflowId();
-    return $workflow;
+  public static function getWorkflowId($license) {
+    /** @var LicenseTypeManager $license_type_manager */
+    $license_type_manager = \Drupal::service('plugin.manager.commerce_license_type');
+    $license_type = $license_type_manager->createInstance($license->type);
+    return $license_type->getWorkflowId();
   }
 
   /**
Index: src/Entity/LicenseInterface.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/Entity/LicenseInterface.php	(date 1501505023000)
+++ src/Entity/LicenseInterface.php	(revision )
@@ -38,11 +38,14 @@
   public function setCreatedTime($timestamp);
 
   /**
-   * Gets the workflow ID that this license's state field should use.
+   * Gets the workflow ID for the state field.
+   *
+   * @param \Drupal\commerce_license\Entity\LicenseInterface $license
+   *   The license.
    *
    * @return string
    *   The workflow ID.
    */
-  public static function getWorkflowId();
+  public static function getWorkflowId($license);
 
 }
