public function TaxTypeBase::__wakeup in Commerce Core 8.2
Overrides DependencySerializationTrait::__wakeup
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxType/ TaxTypeBase.php, line 119
Class
- TaxTypeBase
- Provides the base class for tax types.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxTypeCode
public function __wakeup() {
parent::__wakeup();
if (!empty($this->_parentEntityId)) {
$tax_type_storage = $this->entityTypeManager
->getStorage('commerce_tax_type');
$this->parentEntity = $tax_type_storage
->load($this->_parentEntityId);
unset($this->_parentEntityId);
}
}