ArgumentsResolver::$wildcards

An array object candidates tried on every parameter regardless of name. Type: array File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 29 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace Drupal\Component\Utility Code protected $wildcards;

ArgumentsResolver::getArgument

protected ArgumentsResolver::getArgument(\ReflectionParameter $parameter) Gets the argument value for a parameter. Parameters \ReflectionParameter $parameter: The parameter of a callable to get the value for. Return value mixed The value of the requested parameter value. Throws \RuntimeException Thrown when there is a missing parameter. File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 71 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace

ArgumentsResolver::getArguments

public ArgumentsResolver::getArguments(callable $callable) Gets arguments suitable for passing to the given callable. Return value array An array of arguments to pass to the callable. Throws \RuntimeException When a value for an argument given cannot be resolved. Overrides ArgumentsResolverInterface::getArguments File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 51 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace Drupal\Component\Utility

ArgumentsResolver::__construct

public ArgumentsResolver::__construct(array $scalars, array $objects, array $wildcards) Constructs a new ArgumentsResolver. Parameters array $scalars: An associative array of parameter names to scalar candidate values. object[] $objects: An associative array of parameter names to object candidate values. object[] $wildcards: An array object candidates tried on every parameter regardless of its name. File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 42 Class ArgumentsResolv

ArgumentsResolver::getReflector

protected ArgumentsResolver::getReflector(callable $callable) Gets a reflector for the access check callable. The access checker may be either a procedural function (in which case the callable is the function name) or a method (in which case the callable is an array of the object and method name). Parameters callable $callable: The callable (either a function or a method). Return value \ReflectionFunctionAbstract The ReflectionMethod or ReflectionFunction to introspect the callable. File core

archiver_get_archiver

archiver_get_archiver($file) Creates the appropriate archiver for the specified file. Parameters $file: The full path of the archive file. Note that stream wrapper paths are supported, but not remote ones. Return value A newly created instance of the archiver class appropriate for the specified file, already bound to that file. If no appropriate archiver class was found, will return FALSE. File core/includes/common.inc, line 1245 Common functions that many Drupal modules will need to referenc

ArgumentsResolver::$scalars

An associative array of parameter names to scalar candidate values. Type: array File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 15 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace Drupal\Component\Utility Code protected $scalars;

archiver_get_extensions

archiver_get_extensions() Returns a string of supported archive extensions. Return value A space-separated string of extensions suitable for use by the file validation system. File core/includes/common.inc, line 1219 Common functions that many Drupal modules will need to reference. Code function archiver_get_extensions() { $valid_extensions = array(); foreach (\Drupal::service('plugin.manager.archiver')->getDefinitions() as $archive) { foreach ($archive['extensions'] as $extension

ArchiverManager::__construct

public ArchiverManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs a ArchiverManager object. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations. \Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerInterface $module_

ArgumentsResolver

Resolves the arguments to pass to a callable. Hierarchy class \Drupal\Component\Utility\ArgumentsResolver implements ArgumentsResolverInterface File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 8 Namespace Drupal\Component\Utility Members Name Modifiers Type Description ArgumentsResolver::$objects protected property An associative array of parameter names to object candidate values. ArgumentsResolver::$scalars protected property An associative ar