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

Breadcrumb

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

function Process::escapeShellCommand

Escapes an array of arguments that make up a shell command

Parameters

string[] $args Argument list, with the module name first:

1 call to Process::escapeShellCommand()
XdebugHandler::doRestart in vendor/composer/xdebug-handler/src/XdebugHandler.php
Executes the restarted command then deletes the tmp ini

File

vendor/composer/xdebug-handler/src/Process.php, line 72

Class

Process
Process utility functions

Namespace

Composer\XdebugHandler

Code

public static function escapeShellCommand(array $args) : string {
    $command = '';
    $module = array_shift($args);
    if ($module !== null) {
        $command = self::escape($module, true, true);
        foreach ($args as $arg) {
            $command .= ' ' . self::escape($arg);
        }
    }
    return $command;
}

API Navigation

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