class StubRequestHandlerResourcePlugin
Same name and namespace in other branches
- 11.x core/modules/rest/tests/src/Kernel/RequestHandlerTest.php \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin
- 10 core/modules/rest/tests/src/Kernel/RequestHandlerTest.php \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin
- 8.9.x 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 \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\rest\Plugin\ResourceBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\rest\Plugin\ResourceInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Tests\rest\Kernel\StubRequestHandlerResourcePlugin extends \Drupal\rest\Plugin\ResourceBase
- class \Drupal\rest\Plugin\ResourceBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\rest\Plugin\ResourceInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
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() {
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.