You are here

public function SyncIntent::setStatusData in CMS Content Sync 8

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

Store a key=>value pair for later retrieval.

Parameters

string|string[] $key: The key to store the data against. Especially field handlers should use nested keys like ['field','[name]','[key]'].

mixed $value: Whatever simple value you'd like to store

Return value

bool

See also

EntityStatus::setData()

File

src/SyncIntent.php, line 261

Class

SyncIntent
Class SyncIntent.

Namespace

Drupal\cms_content_sync

Code

public function setStatusData($key, $value) {
  if (!$this->entity_status) {
    return false;
  }
  $this->entity_status
    ->setData($key, $value);
  return true;
}