interface DataProviderResourceInterface in RESTful 7.2
Hierarchy
- interface \Drupal\restful\Plugin\resource\CrudInterface
- interface \Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface
- interface \Drupal\restful\Plugin\resource\DataProvider\DataProviderResourceInterface
- interface \Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface
Expanded class hierarchy of DataProviderResourceInterface
All classes that implement DataProviderResourceInterface
File
- src/
Plugin/ resource/ DataProvider/ DataProviderResourceInterface.php, line 12 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderResourceInterface.
Namespace
Drupal\restful\Plugin\resource\DataProviderView source
interface DataProviderResourceInterface extends DataProviderInterface {
/**
* Creates a new DataProviderResource object from the resource info.
*
* @param RequestInterface $request
* The request.
* @param string $resource_name
* The resource name.
* @param array $version
* The first position is the major version, the second is the minor version.
*
* @return DataProviderResourceInterface
* The data provider.
*/
public static function init(RequestInterface $request, $resource_name, array $version);
/**
* Create or update an item based on the payload.
*
* @param mixed $identifier
* The resource item identifier.
* @param mixed $object
* The payload.
*
* @return mixed
* The identifier of the created or updated resource item.
*/
public function merge($identifier, $object);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CrudInterface:: |
public | function | Counts the total results for the index call. | 8 |
CrudInterface:: |
public | function | Create operation. | 8 |
CrudInterface:: |
public | function | List operation. | 3 |
CrudInterface:: |
public | function | Delete operation. | 8 |
CrudInterface:: |
public | function | Update operation. | 8 |
CrudInterface:: |
public | function | Read operation. | 8 |
CrudInterface:: |
public | function | Read operation. | 8 |
DataProviderInterface:: |
public | function | Adds the options in the provided array to the data provider options. | 3 |
DataProviderInterface:: |
public | function | Generates the canonical path for a given path. | 3 |
DataProviderInterface:: |
public | function | Return the discovery information for the given entity. | 3 |
DataProviderInterface:: |
public | function | Gets the authenticated account. | 3 |
DataProviderInterface:: |
public | function | Gets the entity context. | 3 |
DataProviderInterface:: |
public | function | Returns the ID to render for the current index GET request. | 8 |
DataProviderInterface:: |
public | function | Get the language code. | 3 |
DataProviderInterface:: |
public | function | Returns the metadata collection. | 3 |
DataProviderInterface:: |
public | function | Gets the data provider options. | 3 |
DataProviderInterface:: |
public | function | Gets the range. | 3 |
DataProviderInterface:: |
public | function | Gets the request. | 3 |
DataProviderInterface:: |
public | function | Get the resource path. | 3 |
DataProviderInterface:: |
public static | function | Checks if the passed in string is a dot-nested field. | 3 |
DataProviderInterface:: |
public | function | Checks if the provided field can be used with the current method. | 3 |
DataProviderInterface:: |
public static | function | Processes the input for a filter and adds the appropriate defaults. | 3 |
DataProviderInterface:: |
public | function | Sets the authenticated account. | 3 |
DataProviderInterface:: |
public | function | Sets the language code. | 3 |
DataProviderInterface:: |
public | function | Sets the options. | 3 |
DataProviderInterface:: |
public | function | Sets the range. | 3 |
DataProviderInterface:: |
public | function | Sets the request. | 3 |
DataProviderInterface:: |
public | function | Set the resource path. | 3 |
DataProviderResourceInterface:: |
public static | function | Creates a new DataProviderResource object from the resource info. | 1 |
DataProviderResourceInterface:: |
public | function | Create or update an item based on the payload. | 1 |