GitProvider
Defines a Git provider plugin, such as GitHub.
- Full name:
\Drupal\git_host\Attribute\GitProvider - Parent class:
Plugin
Properties
id
public string $id
label
public \Drupal\Core\StringTranslation\TranslatableMarkup $label
public_host
public ?string $public_host
deriver
public ?string $deriver
Methods
__construct
Constructs a GitProvider attribute.
public __construct(string $id, \Drupal\Core\StringTranslation\TranslatableMarkup $label, string|null $public_host = null, class-string|null $deriver = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$id |
string | |
| The plugin ID. | ||
$label |
\Drupal\Core\StringTranslation\TranslatableMarkup | |
| The provider's name. | ||
$public_host |
string|null | |
| (optional) The provider's public host, such as github.com, which works | ||
| without a key for public repositories. | ||
$deriver |
class-string|null | |
| (optional) The deriver class. |