You are here

public function License::getState in Commerce License 8.2

Gets the license state.

Return value

\Drupal\state_machine\Plugin\Field\FieldType\StateItemInterface The shipment state.

Overrides LicenseInterface::getState

File

src/Entity/License.php, line 271

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function getState() {
  return $this
    ->get('state')
    ->first();
}