You are here

public function AccessGroupAnd::addDependency in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
  2. 9 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;
}