function RefinableDependentAccessTrait::setAccessDependency

Same name in other branches
  1. 9 core/modules/block_content/src/Access/RefinableDependentAccessTrait.php \Drupal\block_content\Access\RefinableDependentAccessTrait::setAccessDependency()
  2. 10 core/modules/block_content/src/Access/RefinableDependentAccessTrait.php \Drupal\block_content\Access\RefinableDependentAccessTrait::setAccessDependency()
  3. 11.x 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\Access

Code

public function setAccessDependency(AccessibleInterface $access_dependency) {
    $this->accessDependency = $access_dependency;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.