src/Metabox/Manager.php
protected function getMetaboxRules(array $fields)
    {
        $rules = [];

        foreach ($fields as $field) {
            /** @var FieldTypeInterface $field */
            $rules[$field->getName()] = $field->getOption('rules');
        }

        return $rules;
    }
protected function getMetaboxRules(array $fields)
    {
        $rules = [];

        foreach ($fields as $field) {
            /** @var FieldTypeInterface $field */
            $rules[$field->getName()] = $field->getOption('rules');
        }

        return $rules;
    }
protected function getMetaboxRules ( array $ fields ) { $ rules = [ ] ; foreach ( $ fields as $ field ) { /** @var FieldTypeInterface $field */ $ rules [ $ field -> getName ( ) ] = $ field -> getOption ( 'rules' ) ; } return $ rules ; }
Return the metabox rules for validation.

@param array $fields

@return array
Return the metabox rules for validation .