public function PushIntent::serialize in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::serialize()
- 2.0.x src/PushIntent.php \Drupal\cms_content_sync\PushIntent::serialize()
Serialize the given entity using the entity push and field push handlers.
Return value
bool Whether or not the serialized entity could be created
Throws
\Drupal\cms_content_sync\Exception\SyncException
1 call to PushIntent::serialize()
- PushIntent::execute in src/
PushIntent.php - Push the given entity.
File
- src/
PushIntent.php, line 240
Class
- PushIntent
- Class PushIntent.
Namespace
Drupal\cms_content_syncCode
public function serialize() {
$config = $this->flow
->getEntityTypeConfig($this->entityType, $this->bundle);
$handler = $this->flow
->getEntityTypeHandler($config);
return $handler
->push($this);
}