You are here

public function License::getOriginatingOrder in Commerce License 8.2

Gets the originating order.

The order that originated the license creation.

Return value

\Drupal\commerce_order\Entity\OrderInterface|null The originated order, or NULL if not known.

Overrides LicenseInterface::getOriginatingOrder

File

src/Entity/License.php, line 292

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function getOriginatingOrder() {
  return $this
    ->get('originating_order')->entity;
}