You are here

public function MessagePlugin::displayPostCreateMessage in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/ProjectMessage/MessagePlugin.php \Drupal\Composer\Plugin\ProjectMessage\MessagePlugin::displayPostCreateMessage()
  2. 9 composer/Plugin/ProjectMessage/MessagePlugin.php \Drupal\Composer\Plugin\ProjectMessage\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);
  }
}