You are here

public function PluginConfigFormBase::getId in Purge 8.3

Retrieve the ID for the plugin being configured.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

string The unique identifier for this plugin.

File

modules/purge_ui/src/Form/PluginConfigFormBase.php, line 53

Class

PluginConfigFormBase
Provides a base class for (dialog-driven) plugin configuration forms.

Namespace

Drupal\purge_ui\Form

Code

public function getId(FormStateInterface $form_state) {
  return $form_state
    ->getBuildInfo()['args'][0]['id'];
}