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

Breadcrumb

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

function BlockContentGetDependencyEvent::setAccessDependency

Sets the access dependency.

Parameters

\Drupal\Core\Access\AccessibleInterface $access_dependency: The access dependency.

File

core/modules/block_content/src/Event/BlockContentGetDependencyEvent.php, line 66

Class

BlockContentGetDependencyEvent
Block content event to allow setting an access dependency.

Namespace

Drupal\block_content\Event

Code

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

API Navigation

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