You are here

public function CheckoutFlow::set in Commerce Core 8.2

Sets the value of a property.

Parameters

string $property_name: The name of the property that should be set.

mixed $value: The value the property should be set to.

Return value

$this

Overrides ConfigEntityBase::set

File

modules/checkout/src/Entity/CheckoutFlow.php, line 130

Class

CheckoutFlow
Defines the checkout flow entity class.

Namespace

Drupal\commerce_checkout\Entity

Code

public function set($property_name, $value) {

  // Invoke the setter to clear related properties.
  if ($property_name == 'plugin') {
    $this
      ->setPluginId($value);
  }
  else {
    return parent::set($property_name, $value);
  }
}