@@ -170,14 +170,14 @@ public function reset() {
170
170
$ this ->pathNames = NULL ;
171
171
172
172
try {
173
- $ this ->state ->delete ($ this ->getPathnamesCacheId ());
173
+ $ this ->state ->delete ($ this ->getPathNamesCacheId ());
174
174
}
175
175
catch (DatabaseExceptionWrapper $ e ) {
176
176
// Ignore exceptions caused by a non existing {key_value} table in the
177
177
// early installer.
178
178
}
179
179
180
- $ this ->cache ->delete ($ this ->getPathnamesCacheId ());
180
+ $ this ->cache ->delete ($ this ->getPathNamesCacheId ());
181
181
// @todo In the long run it would be great to add the reset, but the early
182
182
// installer fails due to that. https://www.drupal.org/node/2719315 could
183
183
// help to resolve with that.
@@ -210,7 +210,7 @@ protected function getInfoCacheId() {
210
210
* @return string
211
211
* The filename cache ID.
212
212
*/
213
- protected function getPathnamesCacheId () {
213
+ protected function getPathNamesCacheId () {
214
214
return "system. {$ this ->type }.files " ;
215
215
}
216
216
@@ -413,15 +413,15 @@ protected function recalculateInfo() {
413
413
*
414
414
* @return string[]
415
415
*/
416
- public function getPathnames () {
416
+ public function getPathNames () {
417
417
if ($ this ->pathNames === NULL ) {
418
- $ cache_id = $ this ->getPathnamesCacheId ();
418
+ $ cache_id = $ this ->getPathNamesCacheId ();
419
419
if ($ cache = $ this ->cache ->get ($ cache_id )) {
420
420
$ path_names = $ cache ->data ;
421
421
}
422
422
// We use $file_names below.
423
423
elseif (!$ path_names = $ this ->state ->get ($ cache_id )) {
424
- $ path_names = $ this ->recalculatePathnames ();
424
+ $ path_names = $ this ->recalculatePathNames ();
425
425
// Store filenames to allow static::getPathname() to retrieve them
426
426
// without having to rebuild or scan the filesystem.
427
427
$ this ->state ->set ($ cache_id , $ path_names );
@@ -438,7 +438,7 @@ public function getPathnames() {
438
438
* @return string[]
439
439
* An array of .info.yml file locations keyed by the extension machine name.
440
440
*/
441
- protected function recalculatePathnames () {
441
+ protected function recalculatePathNames () {
442
442
$ extensions = $ this ->getList ();
443
443
ksort ($ extensions );
444
444
@@ -518,7 +518,7 @@ public function getPathname($extension_name) {
518
518
elseif (isset ($ this ->pathNames [$ extension_name ])) {
519
519
return $ this ->pathNames [$ extension_name ];
520
520
}
521
- elseif (($ path_names = $ this ->getPathnames ()) && isset ($ path_names [$ extension_name ])) {
521
+ elseif (($ path_names = $ this ->getPathNames ()) && isset ($ path_names [$ extension_name ])) {
522
522
return $ path_names [$ extension_name ];
523
523
}
524
524
throw new UnknownExtensionException ("The {$ this ->type } $ extension_name does not exist. " );
0 commit comments