Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Render / Element / Operations.php
diff --git a/web/core/lib/Drupal/Core/Render/Element/Operations.php b/web/core/lib/Drupal/Core/Render/Element/Operations.php
new file mode 100644 (file)
index 0000000..3a53cd7
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\Core\Render\Element;
+
+/**
+ * Provides a render element for a set of operations links.
+ *
+ * This is a special case of \Drupal\Core\Render\Element\Dropbutton; the only
+ * difference is that it offers themes the possibility to render it differently
+ * through a theme suggestion.
+ *
+ * @see \Drupal|Core\Render\Element\DropButton
+ *
+ * @RenderElement("operations")
+ */
+class Operations extends Dropbutton {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getInfo() {
+    return [
+      '#theme' => 'links__dropbutton__operations',
+    ] + parent::getInfo();
+  }
+
+}