You are here

protected function EntityHandlerBase::saveEntity in CMS Content Sync 8

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

Parameters

\Drupal\Core\Entity\EntityInterface $entity:

\Drupal\cms_content_sync\PullIntent $intent:

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to EntityHandlerBase::saveEntity()
EntityHandlerBase::setEntityValues in src/Plugin/EntityHandlerBase.php
Set the values for the pulled entity.
1 method overrides EntityHandlerBase::saveEntity()
DefaultFieldCollectionItemHandler::saveEntity in src/Plugin/cms_content_sync/entity_handler/DefaultFieldCollectionItemHandler.php

File

src/Plugin/EntityHandlerBase.php, line 485

Class

EntityHandlerBase
Common base class for entity handler plugins.

Namespace

Drupal\cms_content_sync\Plugin

Code

protected function saveEntity($entity, $intent) {
  $entity
    ->save();
}