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

Breadcrumb

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

function AccessGroupAnd::addDependency

File

core/modules/block_content/src/Access/AccessGroupAnd.php, line 26

Class

AccessGroupAnd
An access group where all the dependencies must be allowed.

Namespace

Drupal\block_content\Access

Code

public function addDependency(AccessibleInterface $dependency) {
    $this->dependencies[] = $dependency;
    return $this;
}

API Navigation

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