Version 1
[yaffs-website] / web / modules / contrib / devel / webprofiler / src / DrupalDataCollectorInterface.php
diff --git a/web/modules/contrib/devel/webprofiler/src/DrupalDataCollectorInterface.php b/web/modules/contrib/devel/webprofiler/src/DrupalDataCollectorInterface.php
new file mode 100644 (file)
index 0000000..8a02b35
--- /dev/null
@@ -0,0 +1,67 @@
+<?php
+
+namespace Drupal\webprofiler;
+
+/**
+ * Interface DrupalDataCollectorInterface.
+ */
+interface DrupalDataCollectorInterface {
+
+  /**
+   * Returns the datacollector title.
+   *
+   * @return string
+   *   The datacollector title.
+   */
+  public function getTitle();
+
+  /**
+   * Returns the name of the collector.
+   *
+   * @return string
+   *   The collector name.
+   */
+  public function getName();
+
+  /**
+   * Returns the string used in vertical tab summary.
+   *
+   * @return string
+   *   The panel summary.
+   */
+  public function getPanelSummary();
+
+  /**
+   * Returns the collector icon in base64 format.
+   *
+   * @return string
+   *   The collector icon.
+   */
+  public function getIcon();
+
+  /**
+   * Returns true if this datacollector has a detail panel.
+   *
+   * @return bool
+   *   True if datacollector has a detail panel, false otherwise.
+   */
+  public function hasPanel();
+
+  /**
+   * Returns the libraries needed in detail panel.
+   *
+   * @return array
+   *   The render array for detail panel.
+   */
+  public function getLibraries();
+
+  /**
+   * @return array
+   */
+  public function getDrupalSettings();
+
+  /**
+   * @return mixed
+   */
+  public function getData();
+}