You are here

public function DataProviderEntityInterface::entityValidate in RESTful 7.2

Validate an entity before it is saved.

Parameters

\EntityDrupalWrapper $wrapper: The wrapped entity.

Throws

BadRequestException

2 methods override DataProviderEntityInterface::entityValidate()
DataProviderEntity::entityValidate in src/Plugin/resource/DataProvider/DataProviderEntity.php
Validate an entity before it is saved.
DataProviderEntityDecorator::entityValidate in src/Plugin/resource/DataProvider/DataProviderEntityDecorator.php
Validate an entity before it is saved.

File

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

Class

DataProviderEntityInterface

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function entityValidate(\EntityDrupalWrapper $wrapper);