You are here

public function CommerceBundleEntityBase::isLocked in Commerce Core 8.2

Gets whether the bundle is locked.

Locked bundles cannot be deleted.

Return value

bool TRUE if the bundle is locked, FALSE otherwise.

Overrides CommerceBundleEntityInterface::isLocked

File

src/Entity/CommerceBundleEntityBase.php, line 65

Class

CommerceBundleEntityBase
Provides the base class for Commerce bundle entities.

Namespace

Drupal\commerce\Entity

Code

public function isLocked() {
  return (bool) $this->locked;
}