SitemapType.php 980 B

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