Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Access / AccessResultAllowed.php
diff --git a/web/core/lib/Drupal/Core/Access/AccessResultAllowed.php b/web/core/lib/Drupal/Core/Access/AccessResultAllowed.php
new file mode 100644 (file)
index 0000000..ec8beda
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+namespace Drupal\Core\Access;
+
+/**
+ * Value object indicating an allowed access result, with cacheability metadata.
+ */
+class AccessResultAllowed extends AccessResult {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isAllowed() {
+    return TRUE;
+  }
+
+}