How can I get the current page title, into my custom form field? I can see the slug in my URL but there might be a better way than trying to extract it?
<?php
class TransparentField extends BaseField{
public function __construct() {
$this->type = 'transparent';
}
public function content() {
// echo $page->title();
return 'something';
}
}