Block.php 648 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Drupal\Core\Block\Annotation;
  3. use Drupal\Component\Annotation\Plugin;
  4. /**
  5. * Defines a Block annotation object.
  6. *
  7. * @ingroup block_api
  8. *
  9. * @Annotation
  10. */
  11. class Block extends Plugin {
  12. /**
  13. * The plugin ID.
  14. *
  15. * @var string
  16. */
  17. public $id;
  18. /**
  19. * The administrative label of the block.
  20. *
  21. * @var \Drupal\Core\Annotation\Translation
  22. *
  23. * @ingroup plugin_translatable
  24. */
  25. public $admin_label = '';
  26. /**
  27. * The category in the admin UI where the block will be listed.
  28. *
  29. * @var \Drupal\Core\Annotation\Translation
  30. *
  31. * @ingroup plugin_translatable
  32. */
  33. public $category = '';
  34. }