Archiver.php 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace Drupal\Core\Archiver\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines an archiver annotation object.
  6. *
  7. * Plugin Namespace: Plugin\Archiver
  8. *
  9. * For a working example, see \Drupal\system\Plugin\Archiver\Zip
  10. *
  11. * @see \Drupal\Core\Archiver\ArchiverManager
  12. * @see \Drupal\Core\Archiver\ArchiverInterface
  13. * @see plugin_api
  14. * @see hook_archiver_info_alter()
  15. *
  16. * @Annotation
  17. */
  18. class Archiver extends Plugin {
  19. /**
  20. * The archiver plugin ID.
  21. *
  22. * @var string
  23. */
  24. public $id;
  25. /**
  26. * The human-readable name of the archiver plugin.
  27. *
  28. * @ingroup plugin_translatable
  29. *
  30. * @var \Drupal\Core\Annotation\Translation
  31. */
  32. public $title;
  33. /**
  34. * The description of the archiver plugin.
  35. *
  36. * @ingroup plugin_translatable
  37. *
  38. * @var \Drupal\Core\Annotation\Translation
  39. */
  40. public $description;
  41. /**
  42. * An array of valid extensions for this archiver.
  43. *
  44. * @var array
  45. */
  46. public $extensions;
  47. }