Skip to content
Snippets Groups Projects

provide Attributes for the Key module

Open Patrick Kenny requested to merge issue/key-3483550:key_provider_attribute_only into 8.x-1.x
Files
3
+ 31
0
<?php
namespace Drupal\key\Attribute;
use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Defines the Key Input attribute.
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class KeyInput extends Plugin {
/**
* Constructs a KeyInput attribute.
*
* @param string $id
* The plugin ID of the key input.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The human-readable name of the key input.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $description
* The description of the key input.
*/
public function __construct(
public readonly string $id,
public readonly TranslatableMarkup $label,
public readonly TranslatableMarkup $description,
) {
}
}
Loading