LocalActionDefault::getCacheContexts

public LocalActionDefault::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cach

LocalActionDefault::create

public static LocalActionDefault::create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) Creates an instance of the plugin. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin. array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin ID for the plugin instance. mixed $plugin_definition: The plugin implementati

LocalActionDefault::$routeProvider

The route provider to load routes by name. Type: \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 27 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\Menu Code protected $routeProvider;

LocalActionDefault

Provides a default implementation for local action plugins. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Menu\LocalActionDefault implements CacheableDependencyInterface, LocalActionInterface, ContainerFactoryPluginInterface uses DependencySerializationTrait File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 18 Namespace Drupal\Core\Menu Members Name Modifiers Type Description

Local::removeFileJailed

protected Local::removeFileJailed($file) Removes a file. Parameters string $destination: The destination file to be removed. Overrides FileTransfer::removeFileJailed File core/lib/Drupal/Core/FileTransfer/Local.php, line 70 Class Local Defines the local connection class for copying files as the httpd user. Namespace Drupal\Core\FileTransfer Code protected function removeFileJailed($file) { if (@!drupal_unlink($file)) { throw new FileTransferException('Cannot remove file %file.',

Local::removeDirectoryJailed

protected Local::removeDirectoryJailed($directory) Removes a directory. Parameters string $directory: The directory to be removed. Overrides FileTransfer::removeDirectoryJailed File core/lib/Drupal/Core/FileTransfer/Local.php, line 45 Class Local Defines the local connection class for copying files as the httpd user. Namespace Drupal\Core\FileTransfer Code protected function removeDirectoryJailed($directory) { if (!is_dir($directory)) { // Programmer error assertion, not somethi

Local::isFile

public Local::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/Local.php, line 86 Class Local Defines the local connection class for copying files as the httpd user. Namespace Drupal\Core\FileTransfer Code public function isFile($path) { return is_file($path); }

Local::isDirectory

public Local::isDirectory($path) Checks if a particular path is a directory. Parameters string $path: The path to check Return value bool TRUE if the specified path is a directory, FALSE otherwise. Overrides FileTransfer::isDirectory File core/lib/Drupal/Core/FileTransfer/Local.php, line 79 Class Local Defines the local connection class for copying files as the httpd user. Namespace Drupal\Core\FileTransfer Code public function isDirectory($path) { return is_dir($path); }

Local::factory

static Local::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 Fi

Local::createDirectoryJailed

protected Local::createDirectoryJailed($directory) Creates a directory. Parameters string $directory: The directory to be created. Overrides FileTransfer::createDirectoryJailed File core/lib/Drupal/Core/FileTransfer/Local.php, line 36 Class Local Defines the local connection class for copying files as the httpd user. Namespace Drupal\Core\FileTransfer Code protected function createDirectoryJailed($directory) { if (!is_dir($directory) && @!mkdir($directory, 0777, TRUE)) {