Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Render / Element / Details.php
index 92bbb32bd1ea8a8d7a3409d48bb317ea43311874..e45131c8eaf927f384f7ab27957d96206b79f247 100644 (file)
@@ -15,6 +15,8 @@ use Drupal\Core\Render\Element;
  * - #title: The title of the details container. Defaults to "Details".
  * - #open: Indicates whether the container should be open by default.
  *   Defaults to FALSE.
+ * - #summary_attributes: An array of attributes to apply to the <summary>
+ *   element.
  *
  * Usage example:
  * @code
@@ -43,6 +45,7 @@ class Details extends RenderElement {
     $class = get_class($this);
     return [
       '#open' => FALSE,
+      '#summary_attributes' => [],
       '#value' => NULL,
       '#process' => [
         [$class, 'processGroup'],