protected function OpenIDConnectClientFormBase::getPluginForm in OpenID Connect / OAuth client 2.x
Retrieves the plugin form for a given OpenID connect client.
Parameters
\Drupal\openid_connect\Plugin\OpenIDConnectClientInterface $openid_client: The OpenID Connect client plugin.
Return value
\Drupal\Core\Plugin\PluginFormInterface The plugin form for the OpenID Connect client.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
File
- src/
Form/ OpenIDConnectClientFormBase.php, line 219
Class
- OpenIDConnectClientFormBase
- Form handler for the OpenID Connect client add and edit forms.
Namespace
Drupal\openid_connect\FormCode
protected function getPluginForm(OpenIDConnectClientInterface $openid_client) : ?PluginFormInterface {
if ($openid_client instanceof PluginWithFormsInterface) {
return $this->pluginFormFactory
->createInstance($openid_client, 'configure');
}
return NULL;
}