UrlGenerator.php 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Drupal\simple_sitemap\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines a UrlGenerator item annotation object.
  6. *
  7. * @package Drupal\simple_sitemap\Annotation
  8. *
  9. * @see \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorManager
  10. * @see plugin_api
  11. *
  12. * @Annotation
  13. */
  14. class UrlGenerator extends Plugin {
  15. /**
  16. * The generator ID.
  17. *
  18. * @var string
  19. */
  20. public $id;
  21. /**
  22. * The human-readable name of the generator.
  23. *
  24. * @ingroup plugin_translatable
  25. *
  26. * @var \Drupal\Core\Annotation\Translation
  27. */
  28. public $label;
  29. /**
  30. * A short description of the generator.
  31. *
  32. * @ingroup plugin_translatable
  33. *
  34. * @var \Drupal\Core\Annotation\Translation
  35. */
  36. public $description;
  37. /**
  38. * Default generator settings.
  39. *
  40. * @var array
  41. */
  42. public $settings = [];
  43. }