public function AccessGroupAnd::addDependency in Drupal 8
Same name and namespace in other branches
- 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;
}