You are here

public static function MessagePlugin::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 composer/Plugin/ProjectMessage/MessagePlugin.php \Drupal\Composer\Plugin\ProjectMessage\MessagePlugin::getSubscribedEvents()
  2. 9 composer/Plugin/ProjectMessage/MessagePlugin.php \Drupal\Composer\Plugin\ProjectMessage\MessagePlugin::getSubscribedEvents()

File

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

Class

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

Namespace

Drupal\Composer\Plugin\ProjectMessage

Code

public static function getSubscribedEvents() {
  return [
    ScriptEvents::POST_CREATE_PROJECT_CMD => 'displayPostCreateMessage',
    ScriptEvents::POST_INSTALL_CMD => 'displayPostCreateMessage',
  ];
}