$field->key()
Returns the name of the field
$field->key(): string
Return type
string
This method modifies the existing $field
object it is applied to and returns it again.
Examples
<?= $page->title()->key() . ': ' . $page->title()->value() ?>
// Title: Project A