You are here

public function DataProviderEntityInterface::entityPreSave in RESTful 7.2

Allow manipulating the entity before it is saved.

Parameters

\EntityDrupalWrapper $wrapper: The unsaved wrapped entity.

2 methods override DataProviderEntityInterface::entityPreSave()
DataProviderEntity::entityPreSave in src/Plugin/resource/DataProvider/DataProviderEntity.php
Allow manipulating the entity before it is saved.
DataProviderEntityDecorator::entityPreSave in src/Plugin/resource/DataProvider/DataProviderEntityDecorator.php
Allow manipulating the entity before it is saved.

File

src/Plugin/resource/DataProvider/DataProviderEntityInterface.php, line 20
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntityInterface.

Class

DataProviderEntityInterface

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function entityPreSave(\EntityDrupalWrapper $wrapper);