function AccessGroupAnd::addDependency

Same name in other branches
  1. 9 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
  2. 8.9.x core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
  3. 10 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()

File

core/modules/block_content/src/Access/AccessGroupAnd.php, line 26

Class

AccessGroupAnd
An access group where all the dependencies must be allowed.

Namespace

Drupal\block_content\Access

Code

public function addDependency(AccessibleInterface $dependency) {
    $this->dependencies[] = $dependency;
    return $this;
}

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