Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -31,4 +31,5 @@ abstract class DeriverBase implements DeriverInterface {
|
|||
public function getDerivativeDefinitions($base_plugin_definition) {
|
||||
return $this->derivatives;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -240,4 +240,5 @@ class DerivativeDiscoveryDecorator implements DiscoveryInterface {
|
|||
public function __call($method, $args) {
|
||||
return call_user_func_array(array($this->decorated, $method), $args);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,4 +33,5 @@ class StaticDiscovery implements DiscoveryInterface {
|
|||
public function deleteDefinition($plugin) {
|
||||
unset($this->definitions[$plugin]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -63,4 +63,5 @@ class StaticDiscoveryDecorator extends StaticDiscovery {
|
|||
public function __call($method, $args) {
|
||||
return call_user_func_array(array($this->decorated, $method), $args);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,5 @@ use \BadMethodCallException;
|
|||
/**
|
||||
* Exception thrown when a decorator's _call() method is triggered, but the
|
||||
* decorated object does not contain the requested method.
|
||||
*
|
||||
*/
|
||||
class InvalidDecoratedMethod extends BadMethodCallException implements ExceptionInterface { }
|
||||
|
|
|
@ -17,10 +17,12 @@ class InvalidPluginDefinitionException extends PluginException {
|
|||
/**
|
||||
* Constructs a InvalidPluginDefinitionException.
|
||||
*
|
||||
* For the remaining parameters see \Exception.
|
||||
*
|
||||
* @param string $plugin_id
|
||||
* The plugin ID of the mapper.
|
||||
*
|
||||
* @see \Exception for the remaining parameters.
|
||||
* @see \Exception
|
||||
*/
|
||||
public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
|
||||
$this->pluginId = $plugin_id;
|
||||
|
|
|
@ -10,10 +10,12 @@ class PluginNotFoundException extends PluginException {
|
|||
/**
|
||||
* Construct an PluginNotFoundException exception.
|
||||
*
|
||||
* For the remaining parameters see \Exception.
|
||||
*
|
||||
* @param string $plugin_id
|
||||
* The plugin ID that was not found.
|
||||
*
|
||||
* @see \Exception for remaining parameters.
|
||||
* @see \Exception
|
||||
*/
|
||||
public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) {
|
||||
if (empty($message)) {
|
||||
|
|
|
@ -71,7 +71,6 @@ class DefaultFactory implements FactoryInterface {
|
|||
* @throws \Drupal\Component\Plugin\Exception\PluginException
|
||||
* Thrown when there is no class specified, the class doesn't exist, or
|
||||
* the class does not implement the specified required interface.
|
||||
*
|
||||
*/
|
||||
public static function getPluginClass($plugin_id, $plugin_definition = NULL, $required_interface = NULL) {
|
||||
$missing_class_message = sprintf('The plugin (%s) did not specify an instance class.', $plugin_id);
|
||||
|
@ -104,4 +103,5 @@ class DefaultFactory implements FactoryInterface {
|
|||
|
||||
return $class;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,4 +76,5 @@ class ReflectionFactory extends DefaultFactory {
|
|||
}
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -92,4 +92,5 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
|
|||
public function getPluginDefinition() {
|
||||
return $this->pluginDefinition;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue