public function AccessGroupAnd::addDependency in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block_content/src/Access/AccessGroupAnd.php \Drupal\block_content\Access\AccessGroupAnd::addDependency()
- 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\AccessCode
public function addDependency(AccessibleInterface $dependency) {
$this->dependencies[] = $dependency;
return $this;
}