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

Breadcrumb

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

function SetSubtreesCommand::render

Overrides CommandInterface::render

File

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

Class

SetSubtreesCommand
Defines an AJAX command that sets the toolbar subtrees.

Namespace

Drupal\toolbar\Ajax

Code

public function render() {
    return [
        'command' => 'setToolbarSubtrees',
        'subtrees' => array_map('strval', $this->subtrees),
    ];
}

API Navigation

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