Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0

This commit is contained in:
Pantheon Automation 2016-10-06 15:16:20 -07:00 committed by Greg Anderson
parent 2f563ab520
commit f1c8716f57
1732 changed files with 52334 additions and 11780 deletions

View file

@ -3,7 +3,7 @@
/*
* This file is part of the Symfony CMF package.
*
* (c) 2011-2014 Symfony CMF
* (c) 2011-2015 Symfony CMF
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@ -47,19 +47,19 @@ class FieldMapEnhancer implements RouteEnhancerInterface
}
/**
* If the target field is not set but the source field is, map the field
* If the target field is not set but the source field is, map the field.
*
* {@inheritDoc}
* {@inheritdoc}
*/
public function enhance(array $defaults, Request $request)
{
if (isset($defaults[$this->target])) {
return $defaults;
}
if (! isset($defaults[$this->source])) {
if (!isset($defaults[$this->source])) {
return $defaults;
}
if (! isset($this->hashmap[$defaults[$this->source]])) {
if (!isset($this->hashmap[$defaults[$this->source]])) {
return $defaults;
}