public static function DataProviderResourceInterface::init in RESTful 7.2
Creates a new DataProviderResource object from the resource info.
Parameters
RequestInterface $request: The request.
string $resource_name: The resource name.
array $version: The first position is the major version, the second is the minor version.
Return value
DataProviderResourceInterface The data provider.
1 method overrides DataProviderResourceInterface::init()
- DataProviderResource::init in src/
Plugin/ resource/ DataProvider/ DataProviderResource.php - Creates a new DataProviderResource object from the resource info.
File
- src/
Plugin/ resource/ DataProvider/ DataProviderResourceInterface.php, line 27 - Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderResourceInterface.
Class
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public static function init(RequestInterface $request, $resource_name, array $version);