Skip to content

GitHostTokenKeyType

A token for a Git host, such as GitHub or a GitHub Enterprise host.


  • Full name: \Drupal\git_host\Plugin\KeyType\GitHostTokenKeyType
  • Parent class: KeyTypeBase
  • This class implements: KeyPluginFormInterface

Properties

providerManager

The Git provider plugin manager.

protected \Drupal\git_host\GitProviderManager $providerManager

keyRepository

The key repository.

protected \Drupal\key\KeyRepositoryInterface $keyRepository

Methods

create

{@inheritdoc}

public static create(\Symfony\Component\DependencyInjection\ContainerInterface $container, array $configuration, mixed $plugin_id, mixed $plugin_definition): static
  • This method is static. Parameters:
Parameter Type Description
$container \Symfony\Component\DependencyInjection\ContainerInterface
$configuration array
$plugin_id mixed
$plugin_definition mixed

defaultConfiguration

{@inheritdoc}

public defaultConfiguration(): array

buildConfigurationForm

{@inheritdoc}

public buildConfigurationForm(array $form, \Drupal\Core\Form\FormStateInterface $form_state): array

Parameters:

Parameter Type Description
$form array
$form_state \Drupal\Core\Form\FormStateInterface

validateConfigurationForm

{@inheritdoc}

public validateConfigurationForm(array& $form, \Drupal\Core\Form\FormStateInterface $form_state): mixed

Parameters:

Parameter Type Description
$form array
$form_state \Drupal\Core\Form\FormStateInterface

submitConfigurationForm

{@inheritdoc}

public submitConfigurationForm(array& $form, \Drupal\Core\Form\FormStateInterface $form_state): mixed

Parameters:

Parameter Type Description
$form array
$form_state \Drupal\Core\Form\FormStateInterface

generateKeyValue

{@inheritdoc}

public static generateKeyValue(array $configuration): string
  • This method is static. Parameters:
Parameter Type Description
$configuration array

validateKeyValue

{@inheritdoc}

public validateKeyValue(array $form, \Drupal\Core\Form\FormStateInterface $form_state, mixed $key_value): mixed

Parameters:

Parameter Type Description
$form array
$form_state \Drupal\Core\Form\FormStateInterface
$key_value mixed