class StubRequestHandlerResourcePlugin in Drupal 10
Same name and namespace in other branches
- 8 core/modules/rest/tests/src/Kernel/RequestHandlerTest.php \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin
- 9 core/modules/rest/tests/src/Kernel/RequestHandlerTest.php \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin
Stub class where we can prophesize methods.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\rest\Plugin\ResourceBase implements ContainerFactoryPluginInterface, ResourceInterface
- class \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin
- class \Drupal\rest\Plugin\ResourceBase implements ContainerFactoryPluginInterface, ResourceInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of StubRequestHandlerResourcePlugin
File
- core/
modules/ rest/ tests/ src/ Kernel/ RequestHandlerTest.php, line 101
Namespace
Drupal\Tests\rest\KernelView source
class StubRequestHandlerResourcePlugin extends ResourceBase {
public function get($example = NULL, Request $request = NULL) {
}
public function post() {
}
public function patch($data, Request $request) {
}
public function delete() {
}
}