function DevelGenerateForm::getPluginIdFromRequest
Same name in other branches
- 4.x devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::getPluginIdFromRequest()
Returns the value of the param _plugin_id for the current request.
See also
\Drupal\devel_generate\Routing\DevelGenerateRouteSubscriber
4 calls to DevelGenerateForm::getPluginIdFromRequest()
- DevelGenerateForm::buildForm in devel_generate/
src/ Form/ DevelGenerateForm.php - Form constructor.
- DevelGenerateForm::getFormId in devel_generate/
src/ Form/ DevelGenerateForm.php - Returns a unique string identifying the form.
- DevelGenerateForm::submitForm in devel_generate/
src/ Form/ DevelGenerateForm.php - Form submission handler.
- DevelGenerateForm::validateForm in devel_generate/
src/ Form/ DevelGenerateForm.php - Form validation handler.
File
-
devel_generate/
src/ Form/ DevelGenerateForm.php, line 53
Class
- DevelGenerateForm
- Defines a form that allows privileged users to generate entities.
Namespace
Drupal\devel_generate\FormCode
protected function getPluginIdFromRequest() {
$request = $this->requestStack
->getCurrentRequest();
return $request->get('_plugin_id');
}