1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00

Optimizations to WireArray and some descending classes

This commit is contained in:
Ryan Cramer
2024-05-31 14:27:23 -04:00
parent b9d8a741ee
commit 34bca47a07
9 changed files with 140 additions and 59 deletions

View File

@@ -5,7 +5,7 @@
*
* WireArray of Template instances as used by Templates class.
*
* ProcessWire 3.x, Copyright 2016 by Ryan Cramer
* ProcessWire 3.x, Copyright 2024 by Ryan Cramer
* https://processwire.com
*
*/
@@ -21,6 +21,7 @@ class TemplatesArray extends WireArray {
}
public function getItemKey($item) {
/** @var Template $item */
return $item->id;
}