AccessResultAllowed.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Access/AccessResultAllowed.php
  2. 10 core/lib/Drupal/Core/Access/AccessResultAllowed.php
  3. 11.x core/lib/Drupal/Core/Access/AccessResultAllowed.php

Namespace

Drupal\Core\Access

File

core/lib/Drupal/Core/Access/AccessResultAllowed.php

View source
<?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;
    }

}

Classes

Title Deprecated Summary
AccessResultAllowed Value object indicating an allowed access result, with cacheability metadata.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.