Setting form of annotation based plugin

by Udit Rawat   Last Updated August 05, 2018 07:07 AM

I am developing a annotation based opensource module for drupal 8, Module didn't have any entity but have internal configurable plugins.

Module have a route /admin/config/snp-configuration where i want to show configuration form of plugin defined under function settingsForm ( PluginConfigurableInterface ).

Anyone have any idea how can I implement that

   * {@inheritdoc}
public function settingsForm(array $form, FormStateInterface $form_state) {
    global $base_url;

    $form['client_id'] = [
          '#type' => 'textfield',
          '#title' => $this->t('Imgur Client Id'),
          '#description' => $this->t('Enter the client id, Get it from, Use redirect is '.$base_url),
          '#default_value' => '',

    return $form;

Related Questions

Is possible to have One ConfigForm for two Blocks?

Updated February 11, 2018 00:07 AM

How to remove field from form and configuration?

Updated October 02, 2018 21:07 PM