You are here

public function CommerceBundleEntityBase::lock in Commerce Core 8.2

Locks the bundle.

Return value

$this

Overrides CommerceBundleEntityInterface::lock

File

src/Entity/CommerceBundleEntityBase.php, line 72

Class

CommerceBundleEntityBase
Provides the base class for Commerce bundle entities.

Namespace

Drupal\commerce\Entity

Code

public function lock() {
  $this->locked = TRUE;
  return $this;
}