You are here

public function DataProviderEntity::entityPreSave in RESTful 7.2

Allow manipulating the entity before it is saved.

Parameters

\EntityDrupalWrapper $wrapper: The unsaved wrapped entity.

Overrides DataProviderEntityInterface::entityPreSave

1 call to DataProviderEntity::entityPreSave()
DataProviderEntity::setPropertyValues in src/Plugin/resource/DataProvider/DataProviderEntity.php
Set properties of the entity based on the request, and save the entity.
2 methods override DataProviderEntity::entityPreSave()
DataProviderComment::entityPreSave in modules/restful_example/src/Plugin/resource/comment/DataProviderComment.php
Allow manipulating the entity before it is saved.
DataProviderNode::entityPreSave in src/Plugin/resource/DataProvider/DataProviderNode.php
Allow manipulating the entity before it is saved.

File

src/Plugin/resource/DataProvider/DataProviderEntity.php, line 343
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntity.

Class

DataProviderEntity
Class DataProviderEntity.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function entityPreSave(\EntityDrupalWrapper $wrapper) {
}