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

Breadcrumb

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

function MessengerTrait::setMessenger

Sets the messenger.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

1 call to MessengerTrait::setMessenger()
LayoutBuilderDisableForm::__construct in core/modules/layout_builder/src/Form/LayoutBuilderDisableForm.php
Constructs a new RevertOverridesForm.

File

core/lib/Drupal/Core/Messenger/MessengerTrait.php, line 23

Class

MessengerTrait
Provides a trait for the messenger service.

Namespace

Drupal\Core\Messenger

Code

public function setMessenger(MessengerInterface $messenger) {
    $this->messenger = $messenger;
}

API Navigation

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