public function DataProviderPlug::remove in RESTful 7.2
Delete operation.
Parameters
mixed $identifier: The ID of thing to be removed.
Overrides CrudInterface::remove
File
- src/
Plugin/ resource/ DataProvider/ DataProviderPlug.php, line 117 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderPlug.
Class
- DataProviderPlug
- Class DataProviderPlug.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function remove($identifier) {
// TODO: Document how to enable/disable resources using the API.
$disabled_plugins = variable_get('restful_disabled_plugins', array());
$disabled_plugins[$identifier] = TRUE;
variable_set('restful_disabled_plugins', $disabled_plugins);
}