public function SyncIntent::setStatusData in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/SyncIntent.php \Drupal\cms_content_sync\SyncIntent::setStatusData()
- 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
File
- src/
SyncIntent.php, line 261
Class
- SyncIntent
- Class SyncIntent.
Namespace
Drupal\cms_content_syncCode
public function setStatusData($key, $value) {
if (!$this->entity_status) {
return false;
}
$this->entity_status
->setData($key, $value);
return true;
}