AccessResultForbidden.php 342 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php

/**
 * @file
 * Contains \Drupal\Core\Access\AccessResultForbidden.
 */

namespace Drupal\Core\Access;

/**
 * Value object indicating a forbidden access result, with cacheability metadata.
 */
class AccessResultForbidden extends AccessResult {

  /**
   * {@inheritdoc}
   */
  public function isForbidden() {
    return TRUE;
  }

}