function AccessGroupAnd::addDependency
Same name in other branches
- 9 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
- 10 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
- 11.x 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\AccessCode
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.