Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RefinableDependentAccessInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal