public function RefinableDependentAccessTrait::setAccessDependency in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/src/Access/RefinableDependentAccessTrait.php \Drupal\block_content\Access\RefinableDependentAccessTrait::setAccessDependency()
- 10 core/modules/block_content/src/Access/RefinableDependentAccessTrait.php \Drupal\block_content\Access\RefinableDependentAccessTrait::setAccessDependency()
File
- core/
modules/ block_content/ src/ Access/ RefinableDependentAccessTrait.php, line 24
Class
- RefinableDependentAccessTrait
- Trait for \Drupal\block_content\Access\RefinableDependentAccessInterface.
Namespace
Drupal\block_content\AccessCode
public function setAccessDependency(AccessibleInterface $access_dependency) {
$this->accessDependency = $access_dependency;
return $this;
}