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\EntityCode
public function lock() {
$this->locked = TRUE;
return $this;
}