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

Breadcrumb

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

function TitleBlockPluginInterface::setTitle

Sets the title.

Parameters

string|array $title: The page title: either a string for plain titles or a render array for formatted titles.

1 method overrides TitleBlockPluginInterface::setTitle()
PageTitleBlock::setTitle in core/lib/Drupal/Core/Block/Plugin/Block/PageTitleBlock.php
Sets the title.

File

core/lib/Drupal/Core/Block/TitleBlockPluginInterface.php, line 23

Class

TitleBlockPluginInterface
The interface for "title" blocks.

Namespace

Drupal\Core\Block

Code

public function setTitle($title);

API Navigation

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