src/Metabox/Manager.php
public function getFields(MetaboxInterface $metabox, Request $request): MetaboxInterface
    {
        foreach ($metabox->repository()->all() as $field) {
            if (method_exists($field, 'metaboxGet')) {
                $field->metaboxGet($request->query('post_id'));
            }
        }

        return $metabox;
    }
public function getFields(MetaboxInterface $metabox, Request $request): MetaboxInterface
    {
        foreach ($metabox->repository()->all() as $field) {
            if (method_exists($field, 'metaboxGet')) {
                $field->metaboxGet($request->query('post_id'));
            }
        }

        return $metabox;
    }
public function getFields ( MetaboxInterface $ metabox , Request $ request ) : MetaboxInterface { foreach ( $ metabox -> repository ( ) -> all ( ) as $ field ) { if ( method_exists ( $ field , 'metaboxGet' ) ) { $ field -> metaboxGet ( $ request -> query ( 'post_id' ) ) ; } } return $ metabox ; }
Handle metabox initialization.
Set the metabox fields value and return the metabox instance.

@param MetaboxInterface $metabox
@param Request          $request

@return MetaboxInterface
Handle metabox initialization . Set the metabox fields value and return the metabox instance .