view core/lib/Drupal/Component/Utility/ArgumentsResolverInterface.php @ 8:50b0d041100e

Further files for download
author Chris Cannam
date Mon, 05 Feb 2018 10:56:40 +0000
parents 4c8ae668cc8c
children
line wrap: on
line source
<?php

namespace Drupal\Component\Utility;

/**
 * Resolves the arguments to pass to a callable.
 */
interface ArgumentsResolverInterface {

  /**
   * Gets arguments suitable for passing to the given callable.
   *
   * @return array
   *   An array of arguments to pass to the callable.
   *
   * @throws \RuntimeException
   *   When a value for an argument given cannot be resolved.
   */
  public function getArguments(callable $callable);

}