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

Breadcrumb

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

function SetSubtreesCommand::__construct

Constructs a SetSubtreesCommand object.

Parameters

array $subtrees: The toolbar subtrees that will be set.

File

core/modules/toolbar/src/Ajax/SetSubtreesCommand.php, line 25

Class

SetSubtreesCommand
Defines an AJAX command that sets the toolbar subtrees.

Namespace

Drupal\toolbar\Ajax

Code

public function __construct($subtrees) {
    $this->subtrees = $subtrees;
}

API Navigation

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