You are here

public function CrudInterface::update in RESTful 7.2

Update operation.

Parameters

mixed $identifier: The ID of thing to be updated.

mixed $object: The thing that will be set.

bool $replace: TRUE if the contents of $object will replace $identifier entirely. FALSE if only what is set in $object will replace those properties in $identifier.

Return value

array An array of structured data for the thing that was updated.

8 methods override CrudInterface::update()
CacheDecoratedDataProvider::update in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Update operation.
DataProviderDbQuery::update in src/Plugin/resource/DataProvider/DataProviderDbQuery.php
Update operation.
DataProviderDecorator::update in src/Plugin/resource/DataProvider/DataProviderDecorator.php
Update operation.
DataProviderEntity::update in src/Plugin/resource/DataProvider/DataProviderEntity.php
Update operation.
DataProviderNull::update in src/Plugin/resource/DataProvider/DataProviderNull.php
Update operation.

... See full list

File

src/Plugin/resource/CrudInterface.php, line 76
Contains \Drupal\restful\Resource\CrudInterface.

Class

CrudInterface

Namespace

Drupal\restful\Plugin\resource

Code

public function update($identifier, $object, $replace = FALSE);