5 * Contains \Drupal\linkit\Annotation\Attribute.
8 namespace Drupal\linkit\Annotation;
10 use Drupal\Component\Annotation\Plugin;
13 * Defines an attribute annotation object.
15 * Plugin Namespace: Plugin\Linkit\Attribute
17 * For a working example, see \Drupal\linkit\Plugin\Linkit\Attribute\Title
19 * @see \Drupal\linkit\AttributeInterface
20 * @see \Drupal\linkit\AttributeBase
21 * @see \Drupal\linkit\AttributeManager
26 class Attribute extends Plugin {
36 * The human-readable name of the attribute.
38 * The string should be wrapped in a @Translation().
40 * @var \Drupal\Core\Annotation\Translation
45 * The real HTML attribute name for this attribute.
52 * A brief description of the attribute.
54 * This will be shown when adding or configuring a profile.
56 * @ingroup plugin_translatable
58 * @var \Drupal\Core\Annotation\Translation (optional)
60 public $description = '';
63 * A default weight for the attribute.