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

Breadcrumb

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

function Plugin::handler

Instantiates the handler object upon demand.

It is dangerous to update a Composer plugin if it loads any classes prior to the `composer update` operation, and later tries to use them in a post-update hook.

File

composer/Plugin/Scaffold/Plugin.php, line 137

Class

Plugin
Composer plugin for handling drupal scaffold.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function handler() {
    if (!$this->handler) {
        $this->handler = new Handler($this->composer, $this->io);
        // On instantiation of our handler, notify it if the 'require' command
        // was executed.
        if ($this->requireWasCalled) {
            $this->handler
                ->requireWasCalled();
        }
    }
    return $this->handler;
}

API Navigation

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