protected function DevelGenerateForm::getPluginIdFromRequest in Devel 8
Same name and namespace in other branches
- 8.3 devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::getPluginIdFromRequest()
- 8.2 devel_generate/src/Form/DevelGenerateForm.php \Drupal\devel_generate\Form\DevelGenerateForm::getPluginIdFromRequest()
- 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 54
Class
- DevelGenerateForm
- Defines a form that allows privileged users to generate entities.
Namespace
Drupal\devel_generate\FormCode
protected function getPluginIdFromRequest() {
$request = $this
->getRequest();
return $request
->get('_plugin_id');
}