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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user