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

Breadcrumb

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

function MessagePlugin::displayPostCreateMessage

File

composer/Plugin/ProjectMessage/MessagePlugin.php, line 70

Class

MessagePlugin
A Composer plugin to display a message after creating a project.

Namespace

Drupal\Composer\Plugin\ProjectMessage

Code

public function displayPostCreateMessage(Event $event) {
    $message = new Message($this->composer
        ->getPackage(), $event->getName());
    if ($message = $message->getText()) {
        $this->io
            ->write($message);
    }
}
RSS feed
Powered by Drupal