public function PushIntent::serialize in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 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 245
Class
- PushIntent
- Class PushIntent.
Namespace
Drupal\cms_content_syncCode
public function serialize() {
$config = $this->flow
->getController()
->getEntityTypeConfig($this->entityType, $this->bundle);
$handler = $this->flow
->getController()
->getEntityTypeHandler($this->entityType, $this->bundle, $config);
return $handler
->push($this);
}