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

Breadcrumb

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

function Plugin::run

Triggers the plugin's main functionality.

Makes it possible to run the plugin as a custom command.

Parameters

Event $event:

Throws

\InvalidArgumentException

\RuntimeException

LogicException

ProcessFailedException

RuntimeException

File

vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php, line 98

Class

Plugin
PHP_CodeSniffer standard installation manager.

Namespace

PHPCSStandards\Composer\Plugin\Installers\PHPCodeSniffer

Code

public static function run(Event $event) {
    $io = $event->getIO();
    $composer = $event->getComposer();
    $instance = new static();
    $instance->io = $io;
    $instance->composer = $composer;
    $instance->init();
    $instance->onDependenciesChangedEvent();
}

API Navigation

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