class DataProviderNull in RESTful 7.2
Hierarchy
- class \Drupal\restful\Plugin\resource\DataProvider\DataProvider implements DataProviderInterface
- class \Drupal\restful\Plugin\resource\DataProvider\DataProviderNull implements DataProviderInterface
Expanded class hierarchy of DataProviderNull
File
- src/
Plugin/ resource/ DataProvider/ DataProviderNull.php, line 10 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderNull.
Namespace
Drupal\restful\Plugin\resource\DataProviderView source
class DataProviderNull extends DataProvider implements DataProviderInterface {
/**
* {@inheritdoc}
*/
public function count() {
return 0;
}
/**
* {@inheritdoc}
*/
public function create($object) {
return array();
}
/**
* {@inheritdoc}
*/
public function view($identifier) {
return array();
}
/**
* {@inheritdoc}
*/
public function viewMultiple(array $identifiers) {
return array();
}
/**
* {@inheritdoc}
*/
public function update($identifier, $object, $replace = FALSE) {
return array();
}
/**
* {@inheritdoc}
*/
public function remove($identifier) {
}
/**
* {@inheritdoc}
*/
public function getIndexIds() {
return array();
}
/**
* {@inheritdoc}
*/
protected function initDataInterpreter($identifier) {
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataProvider:: |
protected | property | The account authenticated from the request for entity access checks. | |
DataProvider:: |
protected | property | The field definitions. | |
DataProvider:: |
protected | property | Determines the language of the items that should be returned. | |
DataProvider:: |
protected | property | Array of metadata. Use this as a mean to pass info to the render layer. | |
DataProvider:: |
protected | property | User defined options. | |
DataProvider:: |
protected | property | Resource identifier. | |
DataProvider:: |
protected | property | Determines the number of items that should be returned when viewing lists. | |
DataProvider:: |
protected | property | The request | |
DataProvider:: |
protected | property | The resource path. | |
DataProvider:: |
protected | function | Adds query tags and metadata to the EntityFieldQuery. | 2 |
DataProvider:: |
public | function |
Adds the options in the provided array to the data provider options. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Generates the canonical path for a given path. Overrides DataProviderInterface:: |
1 |
DataProvider:: |
public | function |
Return the discovery information for the given entity. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Gets the authenticated account. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Gets the entity context. Overrides DataProviderInterface:: |
3 |
DataProvider:: |
public | function |
Get the language code. Overrides DataProviderInterface:: |
|
DataProvider:: |
protected static | function | Gets the global language. | |
DataProvider:: |
public | function |
Returns the metadata collection. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Gets the data provider options. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Gets the range. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Gets the request. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Get the resource path. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
List operation. Overrides CrudInterface:: |
2 |
DataProvider:: |
protected | function | Initialize the empty resource field collection to bundle the output. | |
DataProvider:: |
public static | function |
Checks if the passed in string is a dot-nested field. Overrides DataProviderInterface:: |
|
DataProvider:: |
protected static | function | Check if a conjunction is valid for filtering. | 1 |
DataProvider:: |
protected static | function | Check if an operator is valid for filtering. | 1 |
DataProvider:: |
public | function |
Checks if the provided field can be used with the current method. Overrides DataProviderInterface:: |
|
DataProvider:: |
protected | function | Filter the query for list. | |
DataProvider:: |
protected | function | Parses the request object to get the pagination options. | |
DataProvider:: |
protected | function | Parses the request to get the sorting options. | |
DataProvider:: |
public static | function |
Processes the input for a filter and adds the appropriate defaults. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Sets the authenticated account. Overrides DataProviderInterface:: |
|
DataProvider:: |
protected | function | Sets an HTTP header. | |
DataProvider:: |
public | function |
Sets the language code. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Sets the options. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Sets the range. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Sets the request. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function |
Set the resource path. Overrides DataProviderInterface:: |
|
DataProvider:: |
public | function | Constructor. | 5 |
DataProviderNull:: |
public | function |
Counts the total results for the index call. Overrides CrudInterface:: |
|
DataProviderNull:: |
public | function |
Create operation. Overrides CrudInterface:: |
|
DataProviderNull:: |
public | function |
Returns the ID to render for the current index GET request. Overrides DataProviderInterface:: |
|
DataProviderNull:: |
protected | function |
Get the data interpreter. Overrides DataProvider:: |
|
DataProviderNull:: |
public | function |
Delete operation. Overrides CrudInterface:: |
|
DataProviderNull:: |
public | function |
Update operation. Overrides CrudInterface:: |
|
DataProviderNull:: |
public | function |
Read operation. Overrides CrudInterface:: |
|
DataProviderNull:: |
public | function |
Read operation. Overrides CrudInterface:: |