You are here

public function ShippingMethod::isEnabled in Commerce Shipping 8.2

Gets whether the shipping method is enabled.

Return value

bool TRUE if the shipping method is enabled, FALSE otherwise.

Overrides ShippingMethodInterface::isEnabled

File

src/Entity/ShippingMethod.php, line 209

Class

ShippingMethod
Defines the shipping method entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function isEnabled() {
  return (bool) $this
    ->getEntityKey('status');
}