Operations.php 589 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Core\Render\Element;
  3. /**
  4. * Provides a render element for a set of operations links.
  5. *
  6. * This is a special case of \Drupal\Core\Render\Element\Dropbutton; the only
  7. * difference is that it offers themes the possibility to render it differently
  8. * through a theme suggestion.
  9. *
  10. * @see \Drupal|Core\Render\Element\DropButton
  11. *
  12. * @RenderElement("operations")
  13. */
  14. class Operations extends Dropbutton {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function getInfo() {
  19. return [
  20. '#theme' => 'links__dropbutton__operations',
  21. ] + parent::getInfo();
  22. }
  23. }