Get page title of content page in panel

In a plugin’s index.php, when the plugin is called from a panel page (endpoint), is it possible to get the panel page title and whether it is Published or not?

I tried to return $this->kirby()->site()->page()->title(->value() but it gives the title of the parent page?

To answer my own question you can get an array of the panel form content in a plugin fields/props with:

return $this->model()->content()->toArray();

or a single value with

return $this->model()->content()->title()->value();

Hope this help someone else.