function DevelGenerateForm::getPluginIdFromRequest

Same name in other branches
  1. 5.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\Form

Code

protected function getPluginIdFromRequest() {
    $request = $this->getRequest();
    return $request->get('_plugin_id');
}