ArgumentsResolver::handleUnresolvedArgument

protected ArgumentsResolver::handleUnresolvedArgument(\ReflectionParameter $parameter) Handles unresolved arguments for getArgument(). Subclasses that override this method may return a default value instead of throwing an exception. Throws \RuntimeException Thrown when there is a missing parameter. File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 133 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace Drupal\Component\Utility Code protecte

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

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::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::$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::$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;

ArgumentsResolver::$objects

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

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

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

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