function RefinableDependentAccessInterface::setAccessDependency

Same name in other branches
  1. 9 core/modules/block_content/src/Access/RefinableDependentAccessInterface.php \Drupal\block_content\Access\RefinableDependentAccessInterface::setAccessDependency()
  2. 8.9.x core/modules/block_content/src/Access/RefinableDependentAccessInterface.php \Drupal\block_content\Access\RefinableDependentAccessInterface::setAccessDependency()
  3. 10 core/modules/block_content/src/Access/RefinableDependentAccessInterface.php \Drupal\block_content\Access\RefinableDependentAccessInterface::setAccessDependency()

Sets the access dependency.

If an access dependency is already set this will replace the existing dependency.

Parameters

\Drupal\Core\Access\AccessibleInterface $access_dependency: The object upon which access depends.

Return value

$this

File

core/modules/block_content/src/Access/RefinableDependentAccessInterface.php, line 25

Class

RefinableDependentAccessInterface
An interface to allow adding an access dependency.

Namespace

Drupal\block_content\Access

Code

public function setAccessDependency(AccessibleInterface $access_dependency);

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