You are here

public function DataProviderEntityDecorator::entityValidate in RESTful 7.2

Validate an entity before it is saved.

Parameters

\EntityDrupalWrapper $wrapper: The wrapped entity.

Throws

BadRequestException

Overrides DataProviderEntityInterface::entityValidate

File

src/Plugin/resource/DataProvider/DataProviderEntityDecorator.php, line 51
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderEntityDecorator.

Class

DataProviderEntityDecorator

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function entityValidate(\EntityDrupalWrapper $wrapper) {
  $this->decorated
    ->entityValidate($wrapper);
}