<?php $blah = new stdClasS(); $blah->id = function() { return 'worked'; }; $vars = [ 'element' => [ '#object' => $blah ] ]; var_dump($vars['element']['#object']->id());
You have javascript disabled. You will not be able to edit any code.