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

Breadcrumb

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

function EventDispatcher::isComposerScript

Checks if string given references a composer run-script

1 call to EventDispatcher::isComposerScript()
EventDispatcher::doDispatch in vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php
Triggers the listeners of an event.

File

vendor/composer/composer/src/Composer/EventDispatcher/EventDispatcher.php, line 626

Class

EventDispatcher
The Event Dispatcher.

Namespace

Composer\EventDispatcher

Code

protected function isComposerScript(string $callable) : bool {
    return strpos($callable, '@') === 0 && strpos($callable, '@php ') !== 0 && strpos($callable, '@putenv ') !== 0;
}

API Navigation

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