Added custom entry details fields I'm looking to add a custom fields to the details section on the right of the entry edit view in the control panel.

I know that in Craft 2 this was possible using:
Craft::$app-&gt;view-&gt;hook('cp.entries.edit.details', functionThatReturnsView())

Is there a more Craft 3 way to do this or do we still use the Craft 2 API for this kind of extension to control panel?
$view-&gt;hook('cp.entries.edit.details', functionThatReturnsView())


Is the correct way in Craft 3.