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;
    }