Elementor\TemplateLibrary\Manager::ensure_args PHP 메소드

ensure_args() 개인적인 메소드

private ensure_args ( array $required_args, array $specified_args )
$required_args array
$specified_args array
    private function ensure_args(array $required_args, array $specified_args)
    {
        $not_specified_args = array_diff($required_args, array_keys(array_filter($specified_args)));
        if ($not_specified_args) {
            return new \WP_Error('arguments_not_specified', 'The required argument(s) `' . implode(', ', $not_specified_args) . '` not specified');
        }
        return true;
    }