-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOchaAiCompletion.php
41 lines (35 loc) · 1.04 KB
/
OchaAiCompletion.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
namespace Drupal\ocha_ai\Attribute;
use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Defines a OCHA AI completion plugin attribute object.
*
* Plugin Namespace: Plugin\ocha_ai\Completion.
*
* @see \Drupal\ocha_ai\Plugin\CompletionPluginBase
* @see \Drupal\ocha_ai\Plugin\CompletionPluginInterface
* @see \Drupal\ocha_ai\Plugin\CompletionPluginManager
* @see plugin_api
*
* @Attribute
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class OchaAiCompletion extends Plugin {
/**
* Constructs a OCHA AI completion attribute.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The label of the plugin.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $description
* The description of the plugin.
*/
public function __construct(
public readonly string $id,
public readonly TranslatableMarkup $label,
public readonly TranslatableMarkup $description,
) {}
}