Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/serializer/Normalizer/GetSetMethodNormalizer.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
107 continue; | 107 continue; |
108 } | 108 } |
109 | 109 |
110 $attributeName = lcfirst(substr($method->name, 0 === strpos($method->name, 'is') ? 2 : 3)); | 110 $attributeName = lcfirst(substr($method->name, 0 === strpos($method->name, 'is') ? 2 : 3)); |
111 | 111 |
112 if ($this->isAllowedAttribute($object, $attributeName)) { | 112 if ($this->isAllowedAttribute($object, $attributeName, $format, $context)) { |
113 $attributes[] = $attributeName; | 113 $attributes[] = $attributeName; |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 return $attributes; | 117 return $attributes; |