You are here

public function FeedType::set in Feeds 8.3

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

src/Entity/FeedType.php, line 227

Class

FeedType
Defines the Feeds feed type entity.

Namespace

Drupal\feeds\Entity

Code

public function set($property_name, $value) {

  // Remove mappings when processor changes.
  if ($property_name === 'processor' && $this->processor !== $value) {
    $this
      ->removeMappings();
  }
  return parent::set($property_name, $value);
}