You are here

public function PullIntent::overwriteProperty in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/PullIntent.php \Drupal\cms_content_sync\PullIntent::overwriteProperty()
  2. 2.0.x src/PullIntent.php \Drupal\cms_content_sync\PullIntent::overwriteProperty()

Overwrite the value for the given field to preprocess the values or access them at a later stage.

Parameters

string $name: The name of the field in question

mixed $value: The value to store

File

src/PullIntent.php, line 514

Class

PullIntent

Namespace

Drupal\cms_content_sync

Code

public function overwriteProperty($name, $value) {
  if ($this->activeLanguage) {
    $this->overriddenTranslatedProperties[$this->activeLanguage][$name] = $value;
    return;
  }
  $this->overriddenProperties[$name] = $value;
}