protected function EntityHandlerBase::setDateProperty in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 2.1.x src/Plugin/EntityHandlerBase.php \Drupal\cms_content_sync\Plugin\EntityHandlerBase::setDateProperty()
3 calls to EntityHandlerBase::setDateProperty()
- DefaultMediaHandler::push in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultMediaHandler.php - DefaultNodeHandler::push in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultNodeHandler.php - DefaultTaxonomyHandler::push in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultTaxonomyHandler.php
File
- src/
Plugin/ EntityHandlerBase.php, line 735
Class
- EntityHandlerBase
- Common base class for entity handler plugins.
Namespace
Drupal\cms_content_sync\PluginCode
protected function setDateProperty(SyncIntent $intent, string $name, int $timestamp) {
if (Migration::useV2()) {
$intent
->setProperty($name, [
'value' => $timestamp,
]);
}
else {
$intent
->setProperty($name, $timestamp);
}
}