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

Breadcrumb

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

function ReplaceTitleCommand::render

Overrides CommandInterface::render

File

core/modules/views/src/Ajax/ReplaceTitleCommand.php, line 34

Class

ReplaceTitleCommand
Provides an AJAX command for replacing the page title.

Namespace

Drupal\views\Ajax

Code

public function render() {
    return [
        'command' => 'viewsReplaceTitle',
        'title' => $this->title,
        'siteName' => \Drupal::config('system.site')->get('name'),
    ];
}

API Navigation

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