Updated the Bootstrap theme.
[yaffs-website] / web / themes / contrib / bootstrap / src / Utility / Element.php
index f0422265b661885816adb81a45bd28dba554696d..9fad8b887b30227e7cd93cb6059176b3a4beee86 100644 (file)
@@ -134,6 +134,18 @@ class Element extends DrupalAttributes {
     parent::__unset($name);
   }
 
+  /**
+   * Sets the #access property on an element.
+   *
+   * @param bool|\Drupal\Core\Access\AccessResultInterface $access
+   *   The value to assign to #access.
+   *
+   * @return static
+   */
+  public function access($access = NULL) {
+    return $this->setProperty('access', $access);
+  }
+
   /**
    * Appends a property with a value.
    *