public function TaxNumberItem::applyVerificationResult in Commerce Core 8.2
Applies the given verification result.
Ensures each portion of the result is stored in the field.
Parameters
\Drupal\commerce_tax\Plugin\Commerce\TaxNumberType\VerificationResult $result: The verification result.
Return value
$this
Overrides TaxNumberItemInterface::applyVerificationResult
1 call to TaxNumberItem::applyVerificationResult()
- TaxNumberItem::preSave in modules/tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php 
- Defines custom presave behavior for field values.
File
- modules/tax/ src/ Plugin/ Field/ FieldType/ TaxNumberItem.php, line 237 
Class
- TaxNumberItem
- Plugin implementation of the 'commerce_tax_number' field type.
Namespace
Drupal\commerce_tax\Plugin\Field\FieldTypeCode
public function applyVerificationResult(VerificationResult $result) {
  $this->verification_state = $result
    ->getState();
  $this->verification_timestamp = $result
    ->getTimestamp();
  $this->verification_result = $result
    ->getData();
  return $this;
}