StackedRouteMatchInterface

Defines an interface for a stack of route matches. This could be for example used on exception pages. Hierarchy interface \Drupal\Core\Routing\RouteMatchInterfaceinterface \Drupal\Core\Routing\StackedRouteMatchInterface File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 12 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RouteMatchInterface::getParameter public function Returns the processed value of a named route parameter. Ro

StackedKernelPass

Provides a compiler pass for stacked HTTP kernels. Builds the HTTP kernel by collecting all services tagged 'http_middleware' and assembling them into a StackedKernel. The middleware with the lowest priority ends up as the outermost while the highest priority middleware wraps the actual HTTP kernel defined by the http_kernel.basic service. The 'http_middleware' service tag additionally accepts a 'responder' parameter. It should be set to TRUE if many or most requests will be handled directly by

SSH::removeDirectoryJailed

protected SSH::removeDirectoryJailed($directory) Removes a directory. Parameters string $directory: The directory to be removed. Overrides FileTransfer::removeDirectoryJailed File core/lib/Drupal/Core/FileTransfer/SSH.php, line 75 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code protected function removeDirectoryJailed($directory) { if (@!ssh2_exec($this->connection, 'rm -Rf ' . escapeshellarg($directory))) { throw new FileTran

SSH::isFile

public SSH::isFile($path) Checks if a particular path is a file (not a directory). Parameters string $path: The path to check. Return value bool TRUE if the specified path is a file, FALSE otherwise. Overrides FileTransfer::isFile File core/lib/Drupal/Core/FileTransfer/SSH.php, line 113 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code public function isFile($path) { $file = escapeshellarg($path); $cmd = "[ -f {$file} ] && e

SSH::removeFileJailed

protected SSH::removeFileJailed($destination) Removes a file. Parameters string $destination: The destination file to be removed. Overrides FileTransfer::removeFileJailed File core/lib/Drupal/Core/FileTransfer/SSH.php, line 84 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code protected function removeFileJailed($destination) { if (!@ssh2_exec($this->connection, 'rm ' . escapeshellarg($destination))) { throw new FileTransferExcep

SSH::__construct

SSH::__construct($jail, $username, $password, $hostname = "localhost", $port = 22) Constructs a Drupal\Core\FileTransfer\FileTransfer object. Parameters $jail: The full path where all file operations performed by this object will be restricted to. This prevents the FileTransfer classes from being able to touch other parts of the filesystem. Overrides FileTransfer::__construct File core/lib/Drupal/Core/FileTransfer/SSH.php, line 13 Class SSH The SSH connection class for the update module.

SSH::getSettingsForm

public SSH::getSettingsForm() Returns a form to collect connection settings credentials. Implementing classes can either extend this form with fields collecting the specific information they need, or override it entirely. Return value array An array that contains a Form API definition. Overrides FileTransfer::getSettingsForm File core/lib/Drupal/Core/FileTransfer/SSH.php, line 140 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code public

SSH::isDirectory

public SSH::isDirectory($path) Implements Drupal\Core\FileTransfer\FileTransfer::isDirectory(). WARNING: This is untested. It is not currently used, but should do the trick. Overrides FileTransfer::isDirectory File core/lib/Drupal/Core/FileTransfer/SSH.php, line 96 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code public function isDirectory($path) { $directory = escapeshellarg($path); $cmd = "[ -d {$directory} ] && echo 'yes'

SSH::createDirectoryJailed

protected SSH::createDirectoryJailed($directory) Creates a directory. Parameters string $directory: The directory to be created. Overrides FileTransfer::createDirectoryJailed File core/lib/Drupal/Core/FileTransfer/SSH.php, line 66 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code protected function createDirectoryJailed($directory) { if (@!ssh2_exec($this->connection, 'mkdir ' . escapeshellarg($directory))) { throw new FileTrans

SSH::factory

static SSH::factory($jail, $settings) Defines a factory method for this class. Classes that extend this class must override the factory() static method. They should return a new instance of the appropriate FileTransfer subclass. Parameters string $jail: The full path where all file operations performed by this object will be restricted to. This prevents the FileTransfer classes from being able to touch other parts of the filesystem. array $settings: An array of connection settings for the File