comparison vendor/symfony/routing/Loader/XmlFileLoader.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
206 $defaults = []; 206 $defaults = [];
207 $requirements = []; 207 $requirements = [];
208 $options = []; 208 $options = [];
209 $condition = null; 209 $condition = null;
210 210
211 /** @var \DOMElement $n */
211 foreach ($node->getElementsByTagNameNS(self::NAMESPACE_URI, '*') as $n) { 212 foreach ($node->getElementsByTagNameNS(self::NAMESPACE_URI, '*') as $n) {
212 if ($node !== $n->parentNode) { 213 if ($node !== $n->parentNode) {
213 continue; 214 continue;
214 } 215 }
215 216
224 break; 225 break;
225 case 'requirement': 226 case 'requirement':
226 $requirements[$n->getAttribute('key')] = trim($n->textContent); 227 $requirements[$n->getAttribute('key')] = trim($n->textContent);
227 break; 228 break;
228 case 'option': 229 case 'option':
229 $options[$n->getAttribute('key')] = trim($n->textContent); 230 $options[$n->getAttribute('key')] = XmlUtils::phpize(trim($n->textContent));
230 break; 231 break;
231 case 'condition': 232 case 'condition':
232 $condition = trim($n->textContent); 233 $condition = trim($n->textContent);
233 break; 234 break;
234 default: 235 default: