clean install

This commit is contained in:
matze committed 2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 files changed
+3555714

No files matched your search

@@ -0,0 +1,35 @@
<?php
namespace Drupal\simple_oauth\Plugin;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\consumers\Entity\Consumer;
use League\OAuth2\Server\Grant\GrantTypeInterface;
/**
* Defines an interface for OAuth2 Grant plugins.
*/
interface Oauth2GrantInterface extends PluginInspectionInterface {
/**
* Gets the grant object.
*
* @param \Drupal\consumers\Entity\Consumer $client
* The consumer entity.
*
* @return \League\OAuth2\Server\Grant\GrantTypeInterface
* The grant type object.
*
* @throws \Exception
*/
public function getGrantType(Consumer $client): GrantTypeInterface;
/**
* Get the grant type label.
*
* @return string
* Returns the grant type label.
*/
public function label(): string;
}