I'm trying to add a tag to the
<head> of all CP pages. I'd think that I can use the
core_boot hook and the
if (REQ === 'CP') logic to trigger
ee()->cp->add_to_head('thing');, but I'm getting the error
No such property: 'cp' on ExpressionEngine\Legacy\Facade.
From what I can see,
ee()->extensions->call('core_boot') is called after
run_ee() has multiple calls to
ee()->cp as well as
ee()->load->library('cp');, so it seems like I should be able to use
Am I approaching this wrong? What am I missing here?