DevelGenerate.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. namespace Drupal\devel_generate\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines a DevelGenerate annotation object.
  6. *
  7. * DevelGenerate handle the bulk creation of entites.
  8. *
  9. * Additional annotation keys for DevelGenerate can be defined in
  10. * hook_devel_generate_info_alter().
  11. *
  12. * @Annotation
  13. *
  14. * @see \Drupal\devel_generate\DevelGeneratePluginManager
  15. * @see \Drupal\devel_generate\DevelGenerateBaseInterface
  16. */
  17. class DevelGenerate extends Plugin {
  18. /**
  19. * The plugin ID.
  20. *
  21. * @var string
  22. */
  23. public $id;
  24. /**
  25. * The human-readable name of the DevelGenerate type.
  26. *
  27. * @ingroup plugin_translatable
  28. *
  29. * @var \Drupal\Core\Annotation\Translation
  30. */
  31. public $label;
  32. /**
  33. * A short description of the DevelGenerate type.
  34. *
  35. * @ingroup plugin_translatable
  36. *
  37. * @var \Drupal\Core\Annotation\Translation
  38. */
  39. public $description;
  40. /**
  41. * A url to access the plugin settings form.
  42. *
  43. * @var string
  44. */
  45. public $url;
  46. /**
  47. * The permission required to access the plugin settings form.
  48. *
  49. * @var string
  50. */
  51. public $permission;
  52. /**
  53. * The name of the DevelGenerate class.
  54. *
  55. * This is not provided manually, it will be added by the discovery mechanism.
  56. *
  57. * @var string
  58. */
  59. public $class;
  60. /**
  61. * An array whose keys are the names of the settings available to the
  62. * DevelGenerate settingsForm, and whose values are the default values for those settings.
  63. *
  64. * @var array
  65. */
  66. public $settings = array();
  67. /**
  68. * An array whose keys are the settings available to the
  69. * DevelGenerate drush command: "suffix", "alias", "options" and "args".
  70. *
  71. * @var array
  72. */
  73. public $drushSettings = array();
  74. }