We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f8f754 commit 01173bfCopy full SHA for 01173bf
src/Models/BaseElement.php
@@ -1231,22 +1231,26 @@ public function getPageTitle()
1231
return null;
1232
}
1233
1234
- /**
1235
- * @return boolean
1236
- */
1237
- public function First()
+ public function IsFirst(): bool
1238
{
1239
return ($this->Parent()->Elements()->first()->ID === $this->ID);
1240
1241
1242
1243
1244
1245
- public function Last()
+ public function First()
+ {
+ return $this->IsFirst();
+ }
+
+ public function IsLast(): bool
1246
1247
return ($this->Parent()->Elements()->last()->ID === $this->ID);
1248
1249
+ public function Last()
1250
1251
+ return $this->IsLast();
1252
1253
1254
/**
1255
* @return int
1256
*/
0 commit comments