src/Metabox/Metabox.php
public function render(\WP_Post $post, array $args)
    {
        $args = array_merge($args['args'], [
            'metabox' => $this,
            'post' => $post,
            'screen' => $this->getScreen()
        ]);

        $response = $this->handleCallback($this->getCallback(), $args);

        if ($response instanceof Renderable) {
            echo $response->render();
        } elseif ($response instanceof Response) {
            echo $response->getContent();
        }
    }
public function render(\WP_Post $post, array $args)
    {
        $args = array_merge($args['args'], [
            'metabox' => $this,
            'post' => $post,
            'screen' => $this->getScreen()
        ]);

        $response = $this->handleCallback($this->getCallback(), $args);

        if ($response instanceof Renderable) {
            echo $response->render();
        } elseif ($response instanceof Response) {
            echo $response->getContent();
        }
    }
public function render ( \ WP_Post $ post , array $ args ) { $ args = array_merge ( $ args [ 'args' ] , [ 'metabox' => $ this , 'post' => $ post , 'screen' => $ this -> getScreen ( ) ] ) ; $ response = $ this -> handleCallback ( $ this -> getCallback ( ) , $ args ) ; if ( $ response instanceof Renderable ) { echo $ response -> render ( ) ; } elseif ( $ response instanceof Response ) { echo $ response -> getContent ( ) ; } }
Render the metabox.

@param \WP_Post $post
@param array    $args
Render the metabox .