public function DataProviderEntityDecorator::entityPreSave in RESTful 7.2
Allow manipulating the entity before it is saved.
Parameters
\EntityDrupalWrapper $wrapper: The unsaved wrapped entity.
Overrides DataProviderEntityInterface::entityPreSave
File
- src/
Plugin/ resource/ DataProvider/ DataProviderEntityDecorator.php, line 39 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntityDecorator.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function entityPreSave(\EntityDrupalWrapper $wrapper) {
$this->decorated
->entityPreSave($wrapper);
}