Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -8,7 +8,6 @@
|
|||
namespace Drupal\Core\ImageToolkit;
|
||||
|
||||
use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
|
||||
use Drupal\Component\Utility\SafeMarkup;
|
||||
use Drupal\Core\Plugin\PluginBase;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
@ -114,7 +113,7 @@ abstract class ImageToolkitOperationBase extends PluginBase implements ImageTool
|
|||
if ($argument['required']) {
|
||||
if (!array_key_exists($id, $arguments)) {
|
||||
// If the argument is required throw an exception.
|
||||
throw new \InvalidArgumentException(SafeMarkup::format("Argument '@argument' expected by plugin '@plugin' but not passed", array('@argument' => $id, '@plugin' => $this->getPluginId())));
|
||||
throw new \InvalidArgumentException("Argument '$id' expected by plugin '{$this->getPluginId()}' but not passed");
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -124,7 +123,7 @@ abstract class ImageToolkitOperationBase extends PluginBase implements ImageTool
|
|||
if (!array_key_exists('default', $argument)) {
|
||||
// The plugin did not define a default, so throw a plugin exception,
|
||||
// not an invalid argument exception.
|
||||
throw new InvalidPluginDefinitionException(SafeMarkup::format("Default for argument '@argument' expected by plugin '@plugin' but not defined", array('@argument' => $id, '@plugin' => $this->getPluginId())));
|
||||
throw new InvalidPluginDefinitionException("Default for argument '$id' expected by plugin '{$this->getPluginId()}' but not defined");
|
||||
}
|
||||
|
||||
// Use the default value if the argument is not passed in.
|
||||
|
|
Reference in a new issue