You are here

public function License::getOriginatingOrderId in Commerce License 8.2

Gets the originating order ID.

Return value

int|null The originating order ID, or NULL if not known.

Overrides LicenseInterface::getOriginatingOrderId

File

src/Entity/License.php, line 307

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function getOriginatingOrderId() {
  return $this
    ->get('originating_order')->target_id;
}